source: branches/1.0/sara_cmt/setup.py @ 14181

Last change on this file since 14181 was 14181, checked in by ramonb, 12 years ago
  • python 2.6 should be first dependancy
  • see #15
File size: 5.5 KB
Line 
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
18from distutils.core import setup
19import site
20
21ETC_PREPEND = ''
22
23if site.sys.prefix in [ '/usr', '/' ]:
24    ETC_PREPEND = '/'
25
26setup(
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 = 'Sil Westerveld',
33    author_email = 'sil.westerveld@sara.nl',
34    license = 'GPL',
35    #long_description = open('README').read(),
36    long_description = '''\
37CMT is a Cluster Management Tool originally created at SARA Computing and \
38Networking Services, which is based in Amsterdam and known as SARA nowadays.''',
39
40    platforms = ['linux-x86_64'],
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#listing-individual-modules
66# 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.
67#
68#    py_modules = ['mod1', 'pkg.mod2'],
69    #py_modules = ['bin.cmt'],
70
71# http://docs.python.org/distutils/setupscript.html#relationships-between-distributions-and-packages
72# 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.
73#
74    #
75    # Somehow 'requires' doesn't work; dependencies won't be installed
76    #requires = [
77    #    'Django (>=1.2, <1.3)',
78    #    'IPy (>=0.75)',
79    #    'django_extensions (>=0.4)',
80    #    'django_tagging (>=0.3.1)',
81    #    'psycopg2 (>=2.4.4)',
82    #    'Python (>=2.6)'
83    #],
84    install_requires = [
85        'Python>=2.6',
86        'Django>=1.2, <1.3',
87        'IPy>=0.75',
88        'django_extensions>=0.4',
89        'django_tagging>=0.3.1',
90        'psycopg2>=2.4.4'
91    ],
92    #provides =
93    #obsoletes =
94
95    # http://docs.python.org/distutils/setupscript.html#installing-scripts
96    #
97    #scripts = ['sara_cmt/cmt.py'],
98    scripts = ['bin/cmt'],
99
100    # http://docs.python.org/distutils/setupscript.html#installing-package-data
101    # 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.
102    #package_dir = {'sara_cmt': 'sara_cmt'},
103    #package_data = {'sara_cmt': ['sara_cmt/apache/django.wsgi']},
104
105    # http://docs.python.org/distutils/setupscript.html#installing-additional-files
106    # 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.
107    # data_files specifies a sequence of (directory, files) pairs in the following way:
108    #     data_files=[('bitmaps', ['bm/b1.gif', 'bm/b2.gif']),
109    #             ('/etc/init.d', ['init-script'])]
110    #
111    # NOTE: wildcards aren't accepted here
112    data_files = [
113        # config-files
114        (ETC_PREPEND + 'etc/cmt/', [
115            'etc/cmt.conf.sample',
116            'etc/logging.conf'
117        ]),
118        # empty directory for CMT-templates
119        (ETC_PREPEND + 'etc/cmt/templates', []),
120        # examples of CMT-templates
121        ('share/doc/cmt/templates/examples', [
122            'templates/examples/base_allnodes.cmt',
123            'templates/examples/cnames.cmt',
124            'templates/examples/first_test.cmt',
125            'templates/examples/gina_allnodes.cmt',
126            'templates/examples/header',
127            'templates/examples/lisa_allnodes.cmt'
128        ]),
129        # executable
130        ('bin/', ['bin/cmt']),
131    ]
132)
Note: See TracBrowser for help on using the repository browser.