spaCy/Makefile

29 lines
868 B
Makefile
Raw Normal View History

2018-06-02 18:10:15 +03:00
SHELL := /bin/bash
sha = $(shell "git" "rev-parse" "--short" "HEAD")
2019-08-25 15:54:19 +03:00
version = $(shell "bin/get-version.sh")
wheel = spacy-$(version)-cp36-cp36m-linux_x86_64.whl
2018-06-02 18:10:15 +03:00
2019-08-25 15:54:19 +03:00
dist/spacy.pex : dist/spacy-$(sha).pex
cp dist/spacy-$(sha).pex dist/spacy.pex
chmod a+rx dist/spacy.pex
dist/spacy-$(sha).pex : dist/$(wheel)
env3.6/bin/python -m pip install pex==1.5.3
2019-10-28 16:03:35 +03:00
env3.6/bin/pex pytest dist/$(wheel) spacy_lookups_data -e spacy -o dist/spacy-$(sha).pex
2019-08-25 15:54:19 +03:00
dist/$(wheel) : setup.py spacy/*.py* spacy/*/*.py*
2018-06-02 18:10:15 +03:00
python3.6 -m venv env3.6
source env3.6/bin/activate
2018-06-29 13:13:17 +03:00
env3.6/bin/pip install wheel
2018-12-08 01:42:48 +03:00
env3.6/bin/pip install -r requirements.txt --no-cache-dir
2018-06-29 13:13:17 +03: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
2018-06-25 00:39:34 +03:00
.PHONY : clean
clean : setup.py
source env3.6/bin/activate
rm -rf dist/*
python setup.py clean --all