File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -60,13 +60,10 @@ def process_pyx(fromfile, tofile):
60
60
# try the cython in the installed python first (somewhat related to scipy/scipy#2397)
61
61
from Cython .Compiler .Version import version as cython_version
62
62
except ImportError :
63
- # if that fails, use the one on the path, which might be the wrong version
64
- try :
65
- # Try the one on the path as a last resort
66
- subprocess .check_call (
67
- ['cython' ] + flags + ["-o" , tofile , fromfile ])
68
- except OSError :
69
- raise OSError ('Cython needs to be installed' )
63
+ # The `cython` command need not point to the version installed in the
64
+ # Python running this script, so raise an error to avoid the chance of
65
+ # using the wrong version of Cython.
66
+ raise OSError ('Cython needs to be installed in Python as a module' )
70
67
else :
71
68
# check the version, and invoke through python
72
69
from distutils .version import LooseVersion
You can’t perform that action at this time.
0 commit comments