From 0f0870d45eb29d20850ab0d9cc36aaedd33eefac Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Tue, 15 Sep 2020 12:35:33 +0200 Subject: [PATCH] Avoid baking '-m spacy' into the pex by default --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 46a7b22ba..c441980a2 100644 --- a/Makefile +++ b/Makefile @@ -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)