-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
executable file
·61 lines (54 loc) · 2.37 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
#!/usr/bin/env python
version_str = '0.6.7'
languages = ['pt', 'nl', 'ja', 'ja_cabocha', 'en', 'fi', 'ko', 'fr', 'ar', 'it', 'es', 'hu', 'zh', 'mblem']
csc_packages = ['conceptnet', 'conceptnet4', 'concepttools', 'corpus', 'corpus.parse',
'divisi2', 'divisi2.algorithms', 'django_settings',
'lib', 'lib.voting', 'lib.voting.templatetags', 'lib.events',
'nl', 'pseudo_auth', 'util', 'webapi', 'webapi.templatetags']
packages=['csc_utils', 'csc'] + ['csc.'+pkg for pkg in csc_packages] + ['csc.nl.'+lang for lang in languages]
try:
from setuptools import setup, Extension, find_packages
# Verify the list of packages.
setuptools_packages = find_packages(exclude=[])
if set(packages) != set(setuptools_packages):
import sys
print >>sys.stderr, 'Missing or extraneous packages found.'
print >>sys.stderr, 'Extraneous:', list(set(packages) - set(setuptools_packages))
print >>sys.stderr, 'Missing:', list(set(setuptools_packages) - set(packages))
sys.exit(1)
except ImportError:
from distutils.core import setup, Extension
import os.path, sys
from stat import ST_MTIME
classifiers=[
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Natural Language :: English',
'Operating System :: MacOS',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Operating System :: Unix',
'Programming Language :: C',
'Programming Language :: Python :: 2.5',
'Programming Language :: Python :: 2.6',
'Topic :: Scientific/Engineering',
'Topic :: Software Development',
'Topic :: Text Processing :: Linguistic',]
README_contents = open(os.path.join(os.path.dirname(__file__), 'README.txt')).read()
doclines = README_contents.split("\n")
setup(
name="csc-utils",
version=version_str,
maintainer='MIT Media Lab, Software Agents group',
maintainer_email='[email protected]',
url='http://csc.media.mit.edu/',
download_url='http://divisi.media.mit.edu/dist/csc-util-%s.tar.gz' % version_str,
license = "http://www.gnu.org/copyleft/gpl.html",
platforms = ["any"],
description = doclines[0],
classifiers = classifiers,
long_description = "\n".join(doclines[2:]),
packages=packages,
namespace_packages=['csc'],
)