summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2018-07-02 20:58:59 -0700
committerEric Wieser <wieser.eric@gmail.com>2018-07-04 14:40:33 -0700
commitdf32fcdd4d225baa1628de35b718ed059fc1902b (patch)
tree2bf93dbad9d2e448e649061144c3f49548836935
parentb141ee557fbd246c18fb1e37c709529fcd867d7b (diff)
downloadnumpy-df32fcdd4d225baa1628de35b718ed059fc1902b.tar.gz
MAINT: Use a simpler invocation of cython
Run it using python -m cython, which works fine even on 0.19
-rwxr-xr-xtools/cythonize.py6
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: