-
Notifications
You must be signed in to change notification settings - Fork 14
/
setup.py
74 lines (68 loc) · 2.33 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
from setuptools import setup, Extension, Command, find_packages
import platform
import numpy
from Cython.Build import cythonize
# find packages in vsm subdirectory
# this will skip the unittests, etc.
packages = ['vsm.'+pkg for pkg in find_packages('vsm')]
packages.append('vsm')
install_requires=[
'chardet',
'cython',
'future',
'matplotlib',
'nltk',
'numpy',
'progressbar2',
'py4j',
'scikit_learn',
'scipy',
'sortedcontainers',
'translate',
'Unidecode',
]
if platform.python_version_tuple()[0] == '2':
install_requires.append("futures>=3.0.0")
install_requires.append("backports.tempfile==1.0")
setup(
name = "vsm",
version = "0.4.15",
description = ('Vector Space Semantic Modeling Framework '\
'for the Indiana Philosophy Ontology Project'),
author = "The Indiana Philosophy Ontology (InPhO) Project",
author_email = "[email protected]",
url = "http://inpho.cogs.indiana.edu/",
download_url = "http://www.github.com/inpho/vsm",
keywords = [],
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Text Processing :: Linguistic",
],
install_requires=install_requires,
license = 'MIT',
packages=packages,
ext_modules = cythonize(
Extension(
"vsm.model._cgs_update",
sources=["vsm/model/_cgs_update.pyx"],
include_dirs=[numpy.get_include()]
)
),
zip_safe = False,
package_data = {'vsm': ['vsm/model/_cgs_update.pyx']},
dependency_links=['https://inpho.cogs.indiana.edu/pypi/czipfile/',
'https://inpho.cogs.indiana.edu/pypi/pymmseg/'],
test_suite = "unittest2.collector",
tests_require=['unittest2'],
)