1 | # This file is part of CMT, a Cluster Management Tool made at SARA. |
---|
2 | # Copyright (C) 2012 Sil Westerveld |
---|
3 | # |
---|
4 | # This program is free software; you can redistribute it and/or modify |
---|
5 | # it under the terms of the GNU General Public License as published by |
---|
6 | # the Free Software Foundation; either version 2 of the License, or |
---|
7 | # (at your option) any later version. |
---|
8 | # |
---|
9 | # This program is distributed in the hope that it will be useful, |
---|
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
12 | # GNU General Public License for more details. |
---|
13 | # |
---|
14 | # You should have received a copy of the GNU General Public License |
---|
15 | # along with this program; if not, write to the Free Software |
---|
16 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
---|
17 | |
---|
18 | from distutils.core import setup |
---|
19 | import site |
---|
20 | |
---|
21 | ETC_PREPEND = '' |
---|
22 | |
---|
23 | if site.sys.prefix in [ '/usr', '/' ]: |
---|
24 | ETC_PREPEND = '/' |
---|
25 | |
---|
26 | setup( |
---|
27 | name = 'CMT', |
---|
28 | version = '1.0', |
---|
29 | description = 'Cluster Management Tool', |
---|
30 | url = 'http://subtrac.sara.nl/oss/cmt/', |
---|
31 | #download_url = '' |
---|
32 | author = 'CMT Development team', |
---|
33 | author_email = 'cmt-users@lists.osd.sara.nl', |
---|
34 | license = 'GPL', |
---|
35 | #long_description = open('README').read(), |
---|
36 | long_description = 'CMT is a Cluster Management Tool originally created '\ |
---|
37 | 'at SARA Computing and Networking Services, which is based in'\ |
---|
38 | 'Amsterdam and known as SARA nowadays.', |
---|
39 | |
---|
40 | platforms = ['linux-x86_64', 'linux-i386' ], |
---|
41 | |
---|
42 | # see: http://pypi.python.org/pypi?:action=list_classifiers |
---|
43 | classifiers = [ |
---|
44 | 'Development Status :: 5 - Production/Stable', |
---|
45 | 'Environment :: Console', |
---|
46 | 'Environment :: Web Environment', |
---|
47 | 'Framework :: Django', |
---|
48 | 'Intended Audience :: System Administrators', |
---|
49 | 'License :: OSI Approved :: GNU General Public License (GPL)', |
---|
50 | 'Natural Language :: English', |
---|
51 | 'Operating System :: POSIX :: Linux', |
---|
52 | 'Programming Language :: Python :: 2.6', |
---|
53 | 'Topic :: Database :: Front-Ends', |
---|
54 | 'Topic :: System :: Clustering', |
---|
55 | 'Topic :: System :: System Administration', |
---|
56 | 'Topic :: Utilities', |
---|
57 | ], |
---|
58 | |
---|
59 | |
---|
60 | |
---|
61 | # http://docs.python.org/distutils/setupscript.html#listing-whole-packages |
---|
62 | #packages = ['sara_cmt', 'sara_cmt/sara_cmt', 'sara_cmt/sara_cmt.cluster', 'sara_cmt/sara_cmt.cluster.templatetags'], |
---|
63 | packages = ['sara_cmt', 'sara_cmt.cluster', 'sara_cmt.cluster.templatetags'], |
---|
64 | |
---|
65 | # http://docs.python.org/distutils/setupscript.html#relationships-between-distributions-and-packages |
---|
66 | # 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. |
---|
67 | # |
---|
68 | # |
---|
69 | # Somehow 'requires' doesn't work; dependencies won't be installed |
---|
70 | #requires = [ |
---|
71 | # 'Python (>=2.6)' |
---|
72 | # 'Django (>=1.2, <1.3)', |
---|
73 | # 'IPy (>=0.75)', |
---|
74 | # 'django_extensions (>=0.4)', |
---|
75 | # 'django_tagging (>=0.3.1)', |
---|
76 | # 'psycopg2 (>=2.4.4)', |
---|
77 | #], |
---|
78 | install_requires = [ |
---|
79 | 'Python>=2.6', |
---|
80 | 'Django>=1.2, <1.3', |
---|
81 | 'IPy>=0.75', |
---|
82 | 'django_extensions>=0.4', |
---|
83 | 'django_tagging>=0.3.1', |
---|
84 | 'psycopg2>=2.4.4' |
---|
85 | ], |
---|
86 | |
---|
87 | # http://docs.python.org/distutils/setupscript.html#installing-scripts |
---|
88 | # |
---|
89 | #scripts = ['sara_cmt/cmt.py'], |
---|
90 | scripts = ['bin/cmt'], |
---|
91 | |
---|
92 | # http://docs.python.org/distutils/setupscript.html#installing-additional-files |
---|
93 | # 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. |
---|
94 | # data_files specifies a sequence of (directory, files) pairs in the following way: |
---|
95 | # data_files=[('bitmaps', ['bm/b1.gif', 'bm/b2.gif']), |
---|
96 | # ('/etc/init.d', ['init-script'])] |
---|
97 | # |
---|
98 | # NOTE: wildcards aren't accepted here |
---|
99 | data_files = [ |
---|
100 | # config-files |
---|
101 | (ETC_PREPEND + 'etc/cmt/', [ |
---|
102 | 'etc/cmt.conf.sample', |
---|
103 | 'etc/logging.conf' |
---|
104 | ]), |
---|
105 | # empty directory for CMT-templates |
---|
106 | (ETC_PREPEND + 'etc/cmt/templates', []), |
---|
107 | # examples of CMT-templates |
---|
108 | ('share/doc/cmt/templates/examples', [ |
---|
109 | 'templates/examples/simple_cnames.cmt', |
---|
110 | 'templates/examples/simple_hostnames.cmt', |
---|
111 | 'templates/examples/simple_dhcpd.conf.cmt', |
---|
112 | 'templates/examples/complex_dns.cmt' |
---|
113 | ]), |
---|
114 | # executable |
---|
115 | ('bin/', ['bin/cmt']), |
---|
116 | ] |
---|
117 | ) |
---|