mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Allow wheelhouse to be set in makefile
This commit is contained in:
parent
2ee0154bd0
commit
acdd7b9478
27
Makefile
27
Makefile
|
@ -17,9 +17,15 @@ ifndef SPACY_BIN
|
||||||
override SPACY_BIN = $(package)-$(version).pex
|
override SPACY_BIN = $(package)-$(version).pex
|
||||||
endif
|
endif
|
||||||
|
|
||||||
dist/$(SPACY_BIN) : wheelhouse/spacy-$(PYVER)-$(version).stamp
|
ifndef WHEELHOUSE
|
||||||
|
override WHEELHOUSE = "./wheelhouse"
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
dist/$(SPACY_BIN) : $(WHEELHOUSE)/spacy-$(PYVER)-$(version).stamp
|
||||||
$(VENV)/bin/pex \
|
$(VENV)/bin/pex \
|
||||||
-f ./wheelhouse \
|
-f $(WHEELHOUSE) \
|
||||||
--no-index \
|
--no-index \
|
||||||
--disable-cache \
|
--disable-cache \
|
||||||
-m spacy \
|
-m spacy \
|
||||||
|
@ -29,18 +35,19 @@ dist/$(SPACY_BIN) : wheelhouse/spacy-$(PYVER)-$(version).stamp
|
||||||
chmod a+rx $@
|
chmod a+rx $@
|
||||||
cp $@ dist/spacy.pex
|
cp $@ dist/spacy.pex
|
||||||
|
|
||||||
dist/pytest.pex : wheelhouse/pytest-*.whl
|
dist/pytest.pex $(WHEELHOUSE)/pytest-*.whl
|
||||||
$(VENV)/bin/pex -f ./wheelhouse --no-index --disable-cache -m pytest -o $@ pytest pytest-timeout mock
|
$(VENV)/bin/pex -f $(WHEELHOUSE) --no-index --disable-cache -m pytest -o $@ pytest pytest-timeout mock
|
||||||
chmod a+rx $@
|
chmod a+rx $@
|
||||||
|
|
||||||
wheelhouse/spacy-$(PYVER)-$(version).stamp : $(VENV)/bin/pex setup.py spacy/*.py* spacy/*/*.py*
|
$(WHEELHOUSE)/spacy-$(PYVER)-$(version).stamp : $(VENV)/bin/pex setup.py spacy/*.py* spacy/*/*.py*
|
||||||
$(VENV)/bin/pip wheel . -w ./wheelhouse
|
mkdir -p $(WHEELHOUSE)
|
||||||
$(VENV)/bin/pip wheel $(SPACY_EXTRAS) -w ./wheelhouse
|
$(VENV)/bin/pip wheel . -w $(WHEELHOUSE)
|
||||||
|
$(VENV)/bin/pip wheel $(SPACY_EXTRAS) -w $(WHEELHOUSE)
|
||||||
|
|
||||||
touch $@
|
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)/bin/pex :
|
$(VENV)/bin/pex :
|
||||||
python$(PYVER) -m venv $(VENV)
|
python$(PYVER) -m venv $(VENV)
|
||||||
|
@ -55,6 +62,6 @@ test : dist/spacy-$(version).pex dist/pytest.pex
|
||||||
|
|
||||||
clean : setup.py
|
clean : setup.py
|
||||||
rm -rf dist/*
|
rm -rf dist/*
|
||||||
rm -rf ./wheelhouse
|
rm -rf $(WHEELHOUSE)/*
|
||||||
rm -rf $(VENV)
|
rm -rf $(VENV)
|
||||||
python setup.py clean --all
|
python setup.py clean --all
|
||||||
|
|
Loading…
Reference in New Issue
Block a user