source: trunk/sara_cmt/setup.py @ 14151

Last change on this file since 14151 was 14151, checked in by sil, 12 years ago
  • Made a 'bin'- and 'etc'-directory and moved the CMT commandline-script and its config-files to these directories.
  • Modified setup.py to copy some files to /usr/local/bin and /etc/cmt (for now)
  • Hardcoded some references to config-files (for the time being)

See #11

File size: 4.1 KB
Line 
1from distutils.core import setup
2setup(
3    name = 'CMT',
4    version = '1.0',
5    description = 'Cluster Management Tool',
6    url = 'http://subtrac.sara.nl/oss/cmt/',
7    #download_url = ''
8    author = 'Sil Westerveld',
9    author_email = 'sil.westerveld@sara.nl',
10    #maintainer = 'Sil Westerveld',
11    #maintainer_email = 'sil.westerveld@sara.nl',
12    license = 'GPL',
13    #long_description = open('README').read(),
14    long_description = '''\
15CMT is a Cluster Management Tool originally created at SARA Computing and \
16Networking Services, which is based in Amsterdam and known as SARA nowadays.''',
17
18    platforms = ['linux-x86_64'],
19
20    # see: http://pypi.python.org/pypi?:action=list_classifiers
21    classifiers = [
22        #'Development Status :: 4 - Beta',
23        'Development Status :: 5 - Production/Stable',
24        'Environment :: Console',
25        'Environment :: Web Environment',
26        'Framework :: Django',
27        'Intended Audience :: System Administrators',
28        'License ::  OSI Approved :: GNU General Public License (GPL)',
29        'Natural Language :: English',
30        'Operating System :: POSIX :: Linux',
31        'Programming Language :: Python :: 2.6',
32        'Topic :: Database :: Front-Ends',
33        'Topic :: System :: Clustering',
34        'Topic :: System :: System Administration',
35        'Topic :: Utilities',
36    ],
37
38
39
40# http://docs.python.org/distutils/setupscript.html#listing-whole-packages
41    #packages = ['sara_cmt', 'sara_cmt/sara_cmt', 'sara_cmt/sara_cmt.cluster', 'sara_cmt/sara_cmt.cluster.templatetags'],
42    packages = ['sara_cmt', 'sara_cmt.cluster', 'sara_cmt.cluster.templatetags'],
43
44# http://docs.python.org/distutils/setupscript.html#listing-individual-modules
45# 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.
46#
47#    py_modules = ['mod1', 'pkg.mod2'],
48    py_modules = ['bin.cmt'],
49
50# http://docs.python.org/distutils/setupscript.html#relationships-between-distributions-and-packages
51# 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.
52#
53    #
54    # Somehow 'requires' doesn't work; dependencies won't be installed
55    #requires = [
56    #    'Django (>=1.2)',
57    #    'IPy (>=0.75)',
58    #    'django_extensions (>=0.4)',
59    #    'django_tagging (>=0.3.1)',
60    #    'psycopg2 (>=2.4.4)',
61    #    'Python (>=2.6)'
62    #],
63    install_requires = [
64        'Django>=1.2',
65        'IPy>=0.75',
66        'django_extensions>=0.4',
67        'django_tagging>=0.3.1',
68        'psycopg2>=2.4.4',
69        'Python>=2.6'
70    ],
71    #provides =
72    #obsoletes =
73
74    # http://docs.python.org/distutils/setupscript.html#installing-scripts
75    #
76    #scripts = ['sara_cmt/cmt.py'],
77    #scripts = ['cmt', 'cmt.py'],
78
79    # http://docs.python.org/distutils/setupscript.html#installing-package-data
80    # 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.
81    #package_dir = {'sara_cmt': 'sara_cmt'},
82    #package_data = {'sara_cmt': ['sara_cmt/apache/django.wsgi']},
83
84    # http://docs.python.org/distutils/setupscript.html#installing-additional-files
85    # 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.
86    # data_files specifies a sequence of (directory, files) pairs in the following way:
87    #     data_files=[('bitmaps', ['bm/b1.gif', 'bm/b2.gif']),
88    #             ('/etc/init.d', ['init-script'])]
89    data_files = [
90        ('/etc/cmt/', ['etc/cmt.conf']),
91        ('/etc/cmt/templates/examples', ['templates/examples/*']),
92        ('/usr/local/bin/', ['bin/cmt.py']),
93    ]
94)
Note: See TracBrowser for help on using the repository browser.