Avoid baking '-m spacy' into the pex by default

This commit is contained in:
Matthew Honnibal 2020-09-15 12:35:33 +02:00
parent e977086a9a
commit 0f0870d45e
1 changed files with 5 additions and 1 deletions

View File

@ -21,6 +21,10 @@ ifndef WHEELHOUSE
override WHEELHOUSE = "./wheelhouse"
endif
ifndef SPACY_PEX_MODULE
# By default, don't execute a module, so we just run Python, not spaCy
override SPACY_PEX_MODULE = ""
endif
dist/$(SPACY_BIN) : $(WHEELHOUSE)/spacy-$(PYVER)-$(version).stamp
@ -28,7 +32,7 @@ dist/$(SPACY_BIN) : $(WHEELHOUSE)/spacy-$(PYVER)-$(version).stamp
-f $(WHEELHOUSE) \
--no-index \
--disable-cache \
-m spacy \
$(SPACY_PEX_MODULE)
-o $@ \
$(package)==$(version) \
$(SPACY_EXTRAS)