mirror of https://github.com/explosion/spaCy.git
Update Makefile (#5099)
This commit is contained in:
parent
31faab3647
commit
3440a72ecb
23
Makefile
23
Makefile
|
@ -1,36 +1,37 @@
|
||||||
SHELL := /bin/bash
|
SHELL := /bin/bash
|
||||||
WHEELHOUSE := ./wheelhouse
|
|
||||||
PYVER := 3.6
|
PYVER := 3.6
|
||||||
VENV := ./env$(PYVER)
|
VENV := ./env$(PYVER)
|
||||||
|
|
||||||
version = $(shell "bin/get-version.sh")
|
version := $(shell "bin/get-version.sh")
|
||||||
|
|
||||||
dist/spacy-$(version).pex : wheelhouse/spacy-$(version)-*.whl
|
dist/spacy-$(version).pex : wheelhouse/spacy-$(version).stamp
|
||||||
pex -f ./wheelhouse --no-index --disable-cache -m spacy -o dist/spacy-$(version).pex spacy==$(version) jsonschema
|
$(VENV)/bin/pex -f ./wheelhouse --no-index --disable-cache -m spacy -o $@ spacy==$(version) jsonschema
|
||||||
chmod a+rx dist/spacy-$(version).pex
|
chmod a+rx $@
|
||||||
|
|
||||||
dist/pytest.pex : wheelhouse/pytest-*.whl
|
dist/pytest.pex : wheelhouse/pytest-*.whl
|
||||||
$(VENV)/bin/pex -f ./wheelhouse --no-index --disable-cache -m pytest -o dist/pytest.pex pytest pytest-timeout mock
|
$(VENV)/bin/pex -f ./wheelhouse --no-index --disable-cache -m pytest -o $@ pytest pytest-timeout mock
|
||||||
chmod a+rx dist/pytest.pex
|
chmod a+rx $@
|
||||||
|
|
||||||
wheelhouse/spacy-$(version)-%.whl : $(VENV)/bin/pex setup.py spacy/*.py* spacy/*/*.py*
|
wheelhouse/spacy-$(version).stamp : $(VENV)/bin/pex setup.py spacy/*.py* spacy/*/*.py*
|
||||||
$(VENV)/bin/pip wheel . -w ./wheelhouse
|
$(VENV)/bin/pip wheel . -w ./wheelhouse
|
||||||
$(VENV)/bin/pip wheel jsonschema spacy_lookups_data -w ./wheelhouse
|
$(VENV)/bin/pip wheel jsonschema spacy_lookups_data -w ./wheelhouse
|
||||||
|
touch $@
|
||||||
|
|
||||||
wheelhouse/pytest-%.whl : $(VENV)/bin/pex
|
wheelhouse/pytest-%.whl : $(VENV)/bin/pex
|
||||||
$(VENV)/bin/pip wheel pytest pytest-timeout mock -w ./wheelhouse
|
$(VENV)/bin/pip wheel pytest pytest-timeout mock -w ./wheelhouse
|
||||||
|
|
||||||
$(VENV) :
|
$(VENV)/bin/pex :
|
||||||
python$(PYVER) -m venv $(VENV)
|
python$(PYVER) -m venv $(VENV)
|
||||||
$(VENV)/bin/python -m pip install pex wheel
|
$(VENV)/bin/python -m pip install pex wheel
|
||||||
|
|
||||||
.PHONY : clean test
|
.PHONY : clean test
|
||||||
|
|
||||||
test : dist/spacy-$(version).pex dist/pytest.pex
|
test : dist/spacy-$(version).pex dist/pytest.pex
|
||||||
PEX_PATH=dist/spacy-$(version).pex ./dist/pytest.pex --pyargs spacy -x
|
( . $(VENV)/bin/activate ; \
|
||||||
|
PEX_PATH=dist/spacy-$(version).pex ./dist/pytest.pex --pyargs spacy -x ; )
|
||||||
|
|
||||||
clean : setup.py
|
clean : setup.py
|
||||||
source env3.6/bin/activate
|
|
||||||
rm -rf dist/*
|
rm -rf dist/*
|
||||||
rm -rf ./wheelhouse
|
rm -rf ./wheelhouse
|
||||||
|
rm -rf $(VENV)
|
||||||
python setup.py clean --all
|
python setup.py clean --all
|
||||||
|
|
Loading…
Reference in New Issue