diff --git a/bin/cythonize.py b/bin/cythonize.py old mode 100644 new mode 100755 diff --git a/bin/cythonize.sh b/bin/cythonize.sh new file mode 100755 index 000000000..d78f7b5fc --- /dev/null +++ b/bin/cythonize.sh @@ -0,0 +1,7 @@ +#!/bin/bash +if [ ! -d ".cythonize" ]; then + virtualenv .cythonize +fi +. .cythonize/bin/activate +pip install -U -r requirements.txt +./bin/cythonize.py $@ diff --git a/setup.py b/setup.py index d5f0b82a9..00d3f88b1 100644 --- a/setup.py +++ b/setup.py @@ -172,8 +172,7 @@ if not release: def generate_cython(): cwd = os.path.abspath(os.path.dirname(__file__)) print('Cythonizing sources') - p = subprocess.call([sys.executable, - os.path.join(cwd, 'bin', 'cythonize.py'), + p = subprocess.call([os.path.join(cwd, 'bin', 'cythonize.sh'), 'spacy'], cwd=cwd) if p != 0: