wrap virtualenv around cythonize

This commit is contained in:
Henning Peters 2015-12-13 12:32:22 +01:00
parent 9662cf04c9
commit 92fabd0114
3 changed files with 8 additions and 2 deletions

0
bin/cythonize.py Normal file → Executable file
View File

7
bin/cythonize.sh Executable file
View File

@ -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 $@

View File

@ -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: