Skip to content

Commit

Permalink
Add entry point-style auto alias for "spacy"
Browse files Browse the repository at this point in the history
Simplest way to run commands as spacy xxx instead of python -m spacy
xxx, while avoiding environment conflicts
  • Loading branch information
ines authored and honnibal committed Aug 14, 2017
1 parent 371b21f commit d208bce
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
recursive-include include *.h
include LICENSE
include README.rst
include bin/spacy
1 change: 1 addition & 0 deletions bin/spacy
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python -m spacy "$@"
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ def setup_package():
url=about['__uri__'],
license=about['__license__'],
ext_modules=ext_modules,
scripts=['bin/spacy'],
install_requires=[
'numpy>=1.7',
'murmurhash>=0.28,<0.29',
Expand Down

0 comments on commit d208bce

Please sign in to comment.