-
Notifications
You must be signed in to change notification settings - Fork 14
/
setup.py
66 lines (58 loc) · 2.13 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
from setuptools import setup, Extension, Command, find_packages
import platform
import numpy
# 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=[
"numpy>=1.6.1",
"scipy>=0.13.0",
"progressbar>=2.3",
"chardet>=2.3.0",
"sortedcontainers>=1.4.0",
"czipfile==1.0.0",
"cython"
]
if platform.python_version_tuple()[0] == '2':
install_requires.append("futures>=3.0.0")
setup(
name = "vsm",
version = "0.4.0b3",
description = ('Vector Space Semantic Modeling Framework '\
'for the Indiana Philosophy Ontology Project'),
author = "The Indiana Philosophy Ontology (InPhO) Project",
author_email = "inpho@indiana.edu",
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",
"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 = [
Extension('_cgs_update', ['vsm/model/_cgs_update.c'],
include_dirs=[numpy.get_include()],
extra_compile_args=['-march=native'],
extra_link_args=['-march=native'],
# define_macros=[('CYTHON_TRACE','1')]
),
],
dependency_links=['https://inpho.cogs.indiana.edu/pypi/czipfile/',
'https://inpho.cogs.indiana.edu/pypi/pymmseg/'],
test_suite = "unittest2.collector",
tests_require=['unittest2'],
)