File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -18,5 +18,5 @@ before_install:
18
18
- conda config --add channels conda-forge
19
19
install :
20
20
- conda install --yes python=$TRAVIS_PYTHON_VERSION pip numpy scipy matplotlib cython nose future
21
- - pip install -v .
21
+ - pip install -e .
22
22
script : nosetests tests
Original file line number Diff line number Diff line change 7
7
import sys
8
8
from glob import glob
9
9
10
- # generate list of .c extension modules based on the .pyx files
10
+ # generate list of .c extension modules based on the .pyx files, which are
11
+ # included in the pypi package (but aren't included in the git repo)
11
12
extension_pathspec = os .path .join ('pylds' ,'*.pyx' ) # only searches pylds/*.pyx!
12
13
paths = [os .path .splitext (fp )[0 ] for fp in glob (extension_pathspec )]
13
14
names = ['.' .join (os .path .split (p )) for p in paths ]
16
17
for name , path in zip (names ,paths )]
17
18
18
19
# alternatively, use cython to generate extension modules if we can import it
20
+ # (which is required if we're installing from the git repo)
19
21
try :
20
22
from Cython .Distutils import build_ext as _build_ext
21
23
except ImportError :
22
24
use_cython = False
23
25
else :
24
26
use_cython = True
25
27
26
- if use_cython and not os . environ . get ( 'NO_USE_CYTHON' ) :
28
+ if use_cython :
27
29
from Cython .Build import cythonize
28
30
try :
29
31
ext_modules = cythonize ('**/*.pyx' ) # recursive globbing!
30
32
except :
31
33
warn ('Failed to generate extension module code from Cython files' )
34
+ sys .exit (1 )
32
35
33
36
# if we run the dist command, regenerate the sources from cython
34
37
class sdist (_sdist ):
You can’t perform that action at this time.
0 commit comments