diff options
-rwxr-xr-x | tools/cythonize.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/cythonize.py b/tools/cythonize.py index f0f1b5516..37c28fad0 100755 --- a/tools/cythonize.py +++ b/tools/cythonize.py @@ -73,10 +73,8 @@ def process_pyx(fromfile, tofile): except OSError: # There are ways of installing Cython that don't result in a cython # executable on the path, see scipy/scipy#2397. - r = subprocess.call([sys.executable, '-c', - 'import sys; from Cython.Compiler.Main import ' - 'setuptools_main as main; sys.exit(main())'] + flags + - ["-o", tofile, fromfile]) + r = subprocess.call([sys.executable, '-m', 'cython'] + flags + + ["-o", tofile, fromfile]) if r != 0: raise Exception('Cython failed') except OSError: |