mirror of
https://github.com/explosion/spaCy.git
synced 2025-03-03 19:08:06 +03:00
wrap virtualenv around cythonize
This commit is contained in:
parent
9662cf04c9
commit
92fabd0114
0
bin/cythonize.py
Normal file → Executable file
0
bin/cythonize.py
Normal file → Executable file
7
bin/cythonize.sh
Executable file
7
bin/cythonize.sh
Executable 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 $@
|
3
setup.py
3
setup.py
|
@ -172,8 +172,7 @@ if not release:
|
||||||
def generate_cython():
|
def generate_cython():
|
||||||
cwd = os.path.abspath(os.path.dirname(__file__))
|
cwd = os.path.abspath(os.path.dirname(__file__))
|
||||||
print('Cythonizing sources')
|
print('Cythonizing sources')
|
||||||
p = subprocess.call([sys.executable,
|
p = subprocess.call([os.path.join(cwd, 'bin', 'cythonize.sh'),
|
||||||
os.path.join(cwd, 'bin', 'cythonize.py'),
|
|
||||||
'spacy'],
|
'spacy'],
|
||||||
cwd=cwd)
|
cwd=cwd)
|
||||||
if p != 0:
|
if p != 0:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user