2018-06-02 15:10:15 +00:00
|
|
|
SHELL := /bin/bash
|
|
|
|
sha = $(shell "git" "rev-parse" "--short" "HEAD")
|
|
|
|
|
2018-06-29 19:21:30 +00:00
|
|
|
dist/spacy.pex : spacy/*.py* spacy/*/*.py*
|
2018-06-02 15:10:15 +00:00
|
|
|
python3.6 -m venv env3.6
|
|
|
|
source env3.6/bin/activate
|
2018-06-29 10:13:17 +00:00
|
|
|
env3.6/bin/pip install wheel
|
2018-12-01 16:37:27 +00:00
|
|
|
env3.6/bin/pip install -r requirements.txt --no-cache-dir --no-binary :all:
|
2018-06-29 10:13:17 +00:00
|
|
|
env3.6/bin/python setup.py build_ext --inplace
|
|
|
|
env3.6/bin/python setup.py sdist
|
|
|
|
env3.6/bin/python setup.py bdist_wheel
|
|
|
|
env3.6/bin/python -m pip install pex
|
2018-07-04 11:22:58 +00:00
|
|
|
env3.6/bin/pex pytest dist/*.whl -e spacy -o dist/spacy-$(sha).pex
|
2018-06-02 15:10:15 +00:00
|
|
|
cp dist/spacy-$(sha).pex dist/spacy.pex
|
|
|
|
chmod a+rx dist/spacy.pex
|
2018-06-24 21:39:34 +00:00
|
|
|
|
|
|
|
.PHONY : clean
|
|
|
|
|
|
|
|
clean : setup.py
|
|
|
|
source env3.6/bin/activate
|
|
|
|
rm -rf dist/*
|
|
|
|
python setup.py clean --all
|