Try to fix fabfile

This commit is contained in:
Matthew Honnibal 2018-02-28 03:28:22 +01:00
parent c5bc0eadc8
commit aa96f769d2

14
fabfile.py vendored
View File

@ -52,34 +52,32 @@ def install():
def make(): def make():
with lcd(path.dirname(__file__)):
with virtualenv(VENV_DIR) as venv_local: with virtualenv(VENV_DIR) as venv_local:
venv_local('pip install wheel') with lcd(path.dirname(__file__)):
venv_local('pip install cython') venv_local('pip install cython')
venv_local('pip install murmurhash')
venv_local('pip install -r requirements.txt') venv_local('pip install -r requirements.txt')
venv_local('python setup.py build_ext --inplace') venv_local('PYTHONPATH=`pwd` python setup.py build_ext --inplace')
def sdist(): def sdist():
with lcd(path.dirname(__file__)):
with virtualenv(VENV_DIR) as venv_local: with virtualenv(VENV_DIR) as venv_local:
with lcd(path.dirname(__file__)):
local('python setup.py sdist') local('python setup.py sdist')
def wheel(): def wheel():
with lcd(path.dirname(__file__)):
with virtualenv(VENV_DIR) as venv_local: with virtualenv(VENV_DIR) as venv_local:
with lcd(path.dirname(__file__)):
venv_local('pip install wheel') venv_local('pip install wheel')
venv_local('python setup.py bdist_wheel') venv_local('python setup.py bdist_wheel')
def clean(): def clean():
with virtualenv(VENV_DIR) as venv_local:
with lcd(path.dirname(__file__)): with lcd(path.dirname(__file__)):
with virtualenv(VENV_DIR) as venv_local:
local('python setup.py clean --all') local('python setup.py clean --all')
def test(): def test():
with lcd(path.dirname(__file__)):
with virtualenv(VENV_DIR) as venv_local: with virtualenv(VENV_DIR) as venv_local:
with lcd(path.dirname(__file__)):
venv_local('pip install pytest') venv_local('pip install pytest')
venv_local('pytest -x spacy/tests') venv_local('pytest -x spacy/tests')