Update Makefile

This commit is contained in:
Matthew Honnibal 2018-06-29 12:13:17 +02:00
parent a040fca99e
commit 94b8302a3c
1 changed files with 7 additions and 7 deletions

View File

@ -4,13 +4,13 @@ sha = $(shell "git" "rev-parse" "--short" "HEAD")
dist/spacy.pex : dist/spacy.pex :
python3.6 -m venv env3.6 python3.6 -m venv env3.6
source env3.6/bin/activate source env3.6/bin/activate
pip install wheel env3.6/bin/pip install wheel
pip install -r requirements.txt --no-cache-dir --no-binary :all: env3.6/bin/pip install -r requirements.txt --no-cache-dir --no-binary :all:
python setup.py build_ext --inplace env3.6/bin/python setup.py build_ext --inplace
python setup.py sdist env3.6/bin/python setup.py sdist
python setup.py bdist_wheel env3.6/bin/python setup.py bdist_wheel
python -m pip install pex env3.6/bin/python -m pip install pex
pex dist/*.whl -e spacy -o dist/spacy-$(sha).pex env3.6/bin/pex dist/*.whl -e spacy -o dist/spacy-$(sha).pex
cp dist/spacy-$(sha).pex dist/spacy.pex cp dist/spacy-$(sha).pex dist/spacy.pex
chmod a+rx dist/spacy.pex chmod a+rx dist/spacy.pex