From 9b5cef8d4a165bd7554d1e98905bb6873dd353c6 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sat, 3 Jan 2015 01:59:43 +1100 Subject: [PATCH] * Move around data files --- setup.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index f3f76b738..c53ef9fd2 100644 --- a/setup.py +++ b/setup.py @@ -30,6 +30,13 @@ def clean(ext): os.unlink(html) +def files_in(directory): + filenames = [] + for fn in os.listdir(directory): + filenames.append(path.join(directory, fn)) + return [f for f in filenames if not path.isdir(f)] + + HERE = os.path.dirname(__file__) virtual_env = os.environ.get('VIRTUAL_ENV', '') compile_args = [] @@ -89,11 +96,13 @@ distutils.core.setup( description="Industrial-strength NLP", author='Matthew Honnibal', author_email='honnibal@gmail.com', - version='1.0', + version='0.1', url="http://honnibal.github.io/spaCy/", - package_data={"spacy": ["*.pxd"], "spacy.en": ["*.pxd", "data/*", "data/*/*"], + package_data={"spacy": ["*.pxd"], "spacy.en": ["*.pxd", "data/pos/*", + "data/wordnet/*", "data/tokenizer/*", + "data/vocab/*"], "spacy.syntax": ["*.pxd"]}, cmdclass={'build_ext': Cython.Distutils.build_ext}, ext_modules=exts, - license="Dual: Commercial or AGPL. Contributions subject to contributor agreement." + license="Dual: Commercial or AGPL" )