mirror of
https://github.com/explosion/spaCy.git
synced 2025-04-25 11:23:40 +03:00
Update fabfile from develop
This commit is contained in:
parent
cc256e9c88
commit
04af13e29a
5
fabfile.py
vendored
5
fabfile.py
vendored
|
@ -14,6 +14,7 @@ VENV_DIR = path.join(PWD, ENV)
|
||||||
def env(lang='python2.7'):
|
def env(lang='python2.7'):
|
||||||
if path.exists(VENV_DIR):
|
if path.exists(VENV_DIR):
|
||||||
local('rm -rf {env}'.format(env=VENV_DIR))
|
local('rm -rf {env}'.format(env=VENV_DIR))
|
||||||
|
local('pip install virtualenv')
|
||||||
local('python -m virtualenv -p {lang} {env}'.format(lang=lang, env=VENV_DIR))
|
local('python -m virtualenv -p {lang} {env}'.format(lang=lang, env=VENV_DIR))
|
||||||
|
|
||||||
|
|
||||||
|
@ -32,6 +33,10 @@ def make():
|
||||||
local('pip install -r requirements.txt')
|
local('pip install -r requirements.txt')
|
||||||
local('python setup.py build_ext --inplace')
|
local('python setup.py build_ext --inplace')
|
||||||
|
|
||||||
|
def sdist():
|
||||||
|
with virtualenv(VENV_DIR):
|
||||||
|
with lcd(path.dirname(__file__)):
|
||||||
|
local('python setup.py sdist')
|
||||||
|
|
||||||
def clean():
|
def clean():
|
||||||
with lcd(path.dirname(__file__)):
|
with lcd(path.dirname(__file__)):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user