-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
90 lines (78 loc) · 2.74 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
89
90
from setuptools import setup
import os
import annotald
setup_args = {
'name': 'annotald'
, 'version': annotald.__version__
, 'description': 'A GUI for treebank annotation'
, 'author': 'Aaron Ecay, Anton Karl Ingason and Jana Beck'
, 'author_email': '[email protected]'
, 'url': 'http://annotald.github.com/'
, 'license': "GPLv3+"
, 'classifiers': [
"Development Status :: 4 - Beta",
"Intended Audience :: Education",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Topic :: Scientific/Engineering"
]
, 'long_description': (open("README.rst").read() + "\n\n" +
open("NEWS.rst").read())
}
if os.name == "nt":
import py2exe
import glob
manifest = """
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1"
manifestVersion="1.0">
<assemblyIdentity
version="0.64.1.0"
processorArchitecture="x86"
name="Controls"
type="win32"
/>
<description>Annotald/description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>
"""
annotald_data_files = []
annotald_data_files.append(('', ['settings.js', 'CS_Tony_oct19.jar',
'nothing.q', 'user-plain-red.png',
'user-plain-blue.png']))
html_files = glob.glob('data/html/*.mako')
annotald_data_files.append(('data/html', html_files))
image_files = glob.glob('data/images/*.png')
annotald_data_files.append(('data/images', image_files))
script_files = glob.glob('data/scripts/*.js')
annotald_data_files.append(('data/scripts', script_files))
css_files = glob.glob('data/css/*.css')
annotald_data_files.append(('data/css', css_files))
setup(windows=[{"script": "annotald-win.py",
"other resources": [24,1, manifest]
}],
data_files=annotald_data_files,
options={"py2exe": {"skip_archive": True}},
**setup_args)
else:
setup(
packages=['annotald']
, scripts=['bin/annotald', 'bin/annotald-aux']
, package_data={'annotald': ["data/*/*", "settings.py",
"settings.js",
"CS_Tony_oct19.jar"]}
, install_requires=["mako", "cherrypy<18", "argparse", "nltk2-fixed==2.0.6"]
, setup_requires = ["setuptools"]
, provides=["annotald"]
, **setup_args
)