mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
* Update prebuild command, for shell bug
This commit is contained in:
parent
b532f4eaa2
commit
912511f0aa
4
fabfile.py
vendored
4
fabfile.py
vendored
|
@ -46,13 +46,13 @@ def prebuild(build_dir='/tmp/build_spacy'):
|
||||||
with lcd(build_dir):
|
with lcd(build_dir):
|
||||||
local('git clone %s .' % spacy_dir)
|
local('git clone %s .' % spacy_dir)
|
||||||
local('virtualenv ' + build_venv)
|
local('virtualenv ' + build_venv)
|
||||||
with prefix('cd %s && PYTHONPATH=`pwd` && source %s/bin/activate' % (build_dir, build_venv)):
|
with prefix('cd %s && PYTHONPATH=`pwd` && . %s/bin/activate' % (build_dir, build_venv)):
|
||||||
local('pip install cython fabric fabtools')
|
local('pip install cython fabric fabtools')
|
||||||
local('pip install -r requirements.txt')
|
local('pip install -r requirements.txt')
|
||||||
local('fab clean make')
|
local('fab clean make')
|
||||||
local('cp -r %s/corpora/en/wordnet corpora/en/' % spacy_dir)
|
local('cp -r %s/corpora/en/wordnet corpora/en/' % spacy_dir)
|
||||||
local('cp %s/corpora/en/freqs.txt.gz corpora/en/' % spacy_dir)
|
local('cp %s/corpora/en/freqs.txt.gz corpora/en/' % spacy_dir)
|
||||||
local('python bin/init_model.py lang_data/en corpora/en spacy/en/data')
|
local('PYTHONPATH=`pwd` python bin/init_model.py lang_data/en corpora/en spacy/en/data')
|
||||||
local('fab test')
|
local('fab test')
|
||||||
local('python setup.py sdist')
|
local('python setup.py sdist')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user