-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsetup.py
executable file
·89 lines (77 loc) · 2.85 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
#!/usr/bin/env python
VERSION = "1.3.4"
from setuptools import setup, find_packages
import os.path, sys
from stat import ST_MTIME
if 'py2exe' in sys.argv:
import py2exe
import modulefinder
for p in sys.path:
modulefinder.AddPackagePath(__name__, p)
sys.path.append('luminoso/lib')
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',]
INCLUDES = ["sip", "PyQt4.QtCore", "PyQt4.Qt", "PyQt4.QtGui", "PyQt4",
'csc.divisi2', 'spyderlib', 'csc.nl',
'standalone_nlp.lang_en', 'jinja2', 'numpy', 'chardet', 'pysparse']
DATA_FILES = ['icons']
setup(
name="Luminoso",
version = VERSION,
maintainer='MIT Media Lab, Software Agents group',
maintainer_email='[email protected]',
url='http://launchpad.net/luminoso/',
license = "http://www.gnu.org/copyleft/gpl.html",
platforms = ["any"],
description = "A Python GUI for semantic analysis using Divisi",
classifiers = classifiers,
ext_modules = [],
packages=find_packages()+['icons', 'study_skel'],
app=['luminoso/run_luminoso.py'],
scripts=['luminoso/run_luminoso.py', 'luminoso/study.py'],
windows=[{'script': 'luminoso/run_luminoso.py'}],
install_requires=['csc-utils >= 0.5', 'divisi2', 'simplenlp', 'ipython >= 0.9.1', 'jinja2', 'chardet'],
package_data={'csc.nl': ['mblem/*.pickle', 'en/*.txt']},
include_package_data=True,
#data_files=DATA_FILES,
options={'py2exe': {
'skip_archive': True,
'includes': INCLUDES,
'excludes': ["Tkconstants","Tkinter","tcl"]
},
'py2app': {
"argv_emulation": True,
'includes': INCLUDES,
},
},
entry_points={'gui_scripts': ['luminoso = luminoso.run_luminoso:main'],
'console_scripts': ['luminoso-study = luminoso.study:main']},
)
'''
Add the icons directory to the build.
Commented out by Rob; this shouldn't be triggered just by importing the setup
script.
'''
#import shutil
##Create paths. One that points to the icons directory and one that creates
##the disired place to copy to.
#
#srcPath = os.path.abspath('./icons')
#targPath = os.path.abspath('./dist/icons')
##Make sure the icons directory exists and that it has not been added to the build
##yet.
#if os.path.exists(srcPath) and (not os.path.exists(targPath)):
# shutil.copytree(srcPath,targPath)