From 4f19fe0f3a57f11c56b633d3ea19d51e0f52af30 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sat, 2 Jun 2018 17:10:15 +0200 Subject: [PATCH] Add Makefile --- Makefile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 000000000..a66710f50 --- /dev/null +++ b/Makefile @@ -0,0 +1,15 @@ +SHELL := /bin/bash +sha = $(shell "git" "rev-parse" "--short" "HEAD") + +dist/spacy.pex : + python3.6 -m venv env3.6 + source env3.6/bin/activate + pip install wheel + pip install -r requirements.txt --no-cache-dir --no-binary :all: + python setup.py build_ext --inplace + python setup.py sdist + python setup.py bdist_wheel + python -m pip install pex + pex dist/*.whl -e spacy -o dist/spacy-$(sha).pex + cp dist/spacy-$(sha).pex dist/spacy.pex + chmod a+rx dist/spacy.pex