File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 9
9
10
10
install :
11
11
- 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%
14
13
- 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"
15
14
- pip install -r dev-requirements.txt
16
15
Original file line number Diff line number Diff line change 15
15
pyx_path = os .path .join (base_path , 'bencoder.pyx' )
16
16
c_path = os .path .join (base_path , 'bencoder.c' )
17
17
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 )
19
22
from Cython .Compiler .Options import directive_defaults
20
23
21
24
directive_defaults ['linetrace' ] = True
You can’t perform that action at this time.
0 commit comments