1 | from distutils.core import setup |
---|
2 | import site |
---|
3 | |
---|
4 | ETC_PREPEND = '' |
---|
5 | |
---|
6 | if site.sys.prefix in [ '/usr', '/' ]: |
---|
7 | ETC_PREPEND = '/' |
---|
8 | |
---|
9 | setup( |
---|
10 | name = 'CMT', |
---|
11 | version = '1.0', |
---|
12 | description = 'Cluster Management Tool', |
---|
13 | url = 'http://subtrac.sara.nl/oss/cmt/', |
---|
14 | #download_url = '' |
---|
15 | author = 'Sil Westerveld', |
---|
16 | author_email = 'sil.westerveld@sara.nl', |
---|
17 | license = 'GPL', |
---|
18 | #long_description = open('README').read(), |
---|
19 | long_description = '''\ |
---|
20 | CMT is a Cluster Management Tool originally created at SARA Computing and \ |
---|
21 | Networking Services, which is based in Amsterdam and known as SARA nowadays.''', |
---|
22 | |
---|
23 | platforms = ['linux-x86_64'], |
---|
24 | |
---|
25 | # see: http://pypi.python.org/pypi?:action=list_classifiers |
---|
26 | classifiers = [ |
---|
27 | 'Development Status :: 5 - Production/Stable', |
---|
28 | 'Environment :: Console', |
---|
29 | 'Environment :: Web Environment', |
---|
30 | 'Framework :: Django', |
---|
31 | 'Intended Audience :: System Administrators', |
---|
32 | 'License :: OSI Approved :: GNU General Public License (GPL)', |
---|
33 | 'Natural Language :: English', |
---|
34 | 'Operating System :: POSIX :: Linux', |
---|
35 | 'Programming Language :: Python :: 2.6', |
---|
36 | 'Topic :: Database :: Front-Ends', |
---|
37 | 'Topic :: System :: Clustering', |
---|
38 | 'Topic :: System :: System Administration', |
---|
39 | 'Topic :: Utilities', |
---|
40 | ], |
---|
41 | |
---|
42 | |
---|
43 | |
---|
44 | # http://docs.python.org/distutils/setupscript.html#listing-whole-packages |
---|
45 | #packages = ['sara_cmt', 'sara_cmt/sara_cmt', 'sara_cmt/sara_cmt.cluster', 'sara_cmt/sara_cmt.cluster.templatetags'], |
---|
46 | packages = ['sara_cmt', 'sara_cmt.cluster', 'sara_cmt.cluster.templatetags'], |
---|
47 | |
---|
48 | # http://docs.python.org/distutils/setupscript.html#listing-individual-modules |
---|
49 | # This describes two modules, one of them in the "root" package, the other in the pkg package. Again, the default package/directory layout implies that these two modules can be found in mod1.py and pkg/mod2.py, and that pkg/__init__.py exists as well. |
---|
50 | # |
---|
51 | # py_modules = ['mod1', 'pkg.mod2'], |
---|
52 | #py_modules = ['bin.cmt'], |
---|
53 | |
---|
54 | # http://docs.python.org/distutils/setupscript.html#relationships-between-distributions-and-packages |
---|
55 | # Dependencies on other Python modules and packages can be specified by supplying the requires keyword argument to setup(). The value must be a list of strings. Each string specifies a package that is required, and optionally what versions are sufficient. |
---|
56 | # |
---|
57 | # |
---|
58 | # Somehow 'requires' doesn't work; dependencies won't be installed |
---|
59 | #requires = [ |
---|
60 | # 'Django (>=1.2, <1.3)', |
---|
61 | # 'IPy (>=0.75)', |
---|
62 | # 'django_extensions (>=0.4)', |
---|
63 | # 'django_tagging (>=0.3.1)', |
---|
64 | # 'psycopg2 (>=2.4.4)', |
---|
65 | # 'Python (>=2.6)' |
---|
66 | #], |
---|
67 | install_requires = [ |
---|
68 | 'Django>=1.2, <1.3', |
---|
69 | 'IPy>=0.75', |
---|
70 | 'django_extensions>=0.4', |
---|
71 | 'django_tagging>=0.3.1', |
---|
72 | 'psycopg2>=2.4.4', |
---|
73 | 'Python>=2.6' |
---|
74 | ], |
---|
75 | #provides = |
---|
76 | #obsoletes = |
---|
77 | |
---|
78 | # http://docs.python.org/distutils/setupscript.html#installing-scripts |
---|
79 | # |
---|
80 | #scripts = ['sara_cmt/cmt.py'], |
---|
81 | scripts = ['bin/cmt'], |
---|
82 | |
---|
83 | # http://docs.python.org/distutils/setupscript.html#installing-package-data |
---|
84 | # Often, additional files need to be installed into a package. These files are often data that's closely related to the package's implementation, or text files containing documentation that might be of interest to programmers using the package. These files are called package data. |
---|
85 | #package_dir = {'sara_cmt': 'sara_cmt'}, |
---|
86 | #package_data = {'sara_cmt': ['sara_cmt/apache/django.wsgi']}, |
---|
87 | |
---|
88 | # http://docs.python.org/distutils/setupscript.html#installing-additional-files |
---|
89 | # The data_files option can be used to specify additional files needed by the module distribution: configuration files, message catalogs, data files, anything which doesn't fit in the previous categories. |
---|
90 | # data_files specifies a sequence of (directory, files) pairs in the following way: |
---|
91 | # data_files=[('bitmaps', ['bm/b1.gif', 'bm/b2.gif']), |
---|
92 | # ('/etc/init.d', ['init-script'])] |
---|
93 | # |
---|
94 | # NOTE: wildcards aren't accepted here |
---|
95 | data_files = [ |
---|
96 | # config-files |
---|
97 | (ETC_PREPEND + 'etc/cmt/', [ |
---|
98 | 'etc/cmt.conf.sample', |
---|
99 | 'etc/logging.conf' |
---|
100 | ]), |
---|
101 | # empty directory for CMT-templates |
---|
102 | (ETC_PREPEND + 'etc/cmt/templates', []), |
---|
103 | # examples of CMT-templates |
---|
104 | ('share/doc/cmt/templates/examples', [ |
---|
105 | 'templates/examples/base_allnodes.cmt', |
---|
106 | 'templates/examples/cnames.cmt', |
---|
107 | 'templates/examples/first_test.cmt', |
---|
108 | 'templates/examples/gina_allnodes.cmt', |
---|
109 | 'templates/examples/header', |
---|
110 | 'templates/examples/lisa_allnodes.cmt' |
---|
111 | ]), |
---|
112 | # executable |
---|
113 | ('bin/', ['bin/cmt']), |
---|
114 | ] |
---|
115 | ) |
---|