-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
58 lines (54 loc) · 1.84 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
import os.path
from distutils.core import setup
# Install data_files for gwtmedia directory
data_files = []
tocopy = os.path.join("gwt","build")
for dirpath, dirnames, filenames in os.walk(tocopy):
if filenames:
if dirpath.startswith(tocopy):
ndirpath = dirpath[len(tocopy):]
if ndirpath.startswith(os.path.sep):
ndirpath = ndirpath[1:]
data_files.append(
(
os.path.join("share","opus","build",ndirpath),
[os.path.join(dirpath,x) for x in filenames],
)
)
if __name__ == "__main__":
setup(
name='Opus',
version='0.2.0',
url="https://fedorahosted.org/opus/",
maintainer="North Carolina State University",
maintainer_email="[email protected]",
platforms=["Linux"],
packages=[
'opus',
'opus.lib',
'opus.lib.conf',
'opus.lib.deployer',
'opus.lib.profile',
'opus.lib.profile.profilerapp',
'opus.lib.prov',
'opus.lib.prov.drivers',
'opus.lib.builder',
'opus.lib.osutils',
'opus.project',
'opus.project.deployment',
'opus.project.dcmux',
],
package_data = {
'opus.project': ['settings.py.sample',
'templates/*.html',
'templates/deployment/*.html',
'templates/registration/*.html',
],
'opus.project.dcmux': ['templates/*.xml'],
'opus.lib.conf': ['default_settings.json'],
},
data_files = data_files,
license='Apache License 2.0',
long_description=open("README.txt",'r').read(),
requires=["Django(>=1.2)"],
)