File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 99
1010install :
1111 - choco install python.pypy > pypy-inst.log 2>&1 || (type pypy-inst.log & exit /b 1)
12- - SET PATH=C:\tools\pypy\pypy;C:\Python35;C:\Python35\scripts;%PATH%
13- - pip install tox
12+ - SET PATH=C:\Python35;C:\Python35\scripts;C:\tools\pypy\pypy;%PATH%
1413 - echo "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64 > "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64\vcvars64.bat"
1514 - pip install -r dev-requirements.txt
1615
Original file line number Diff line number Diff line change 1515pyx_path = os .path .join (base_path , 'bencoder.pyx' )
1616c_path = os .path .join (base_path , 'bencoder.c' )
1717
18- if sys .argv [- 1 ] == 'test' and platform .python_implementation () == 'CPython' :
18+ if 'test' in sys .argv and platform .python_implementation () == 'CPython' :
19+ if os .path .exists (c_path ):
20+ # Remove C file to force Cython recompile.
21+ os .remove (c_path )
1922 from Cython .Compiler .Options import directive_defaults
2023
2124 directive_defaults ['linetrace' ] = True
You can’t perform that action at this time.
0 commit comments