mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-14 05:37:03 +03:00
Add Makefile
This commit is contained in:
parent
5d281cf302
commit
4f19fe0f3a
15
Makefile
Normal file
15
Makefile
Normal file
|
@ -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
|
Loading…
Reference in New Issue
Block a user