source: trunk/sara_cmt/setup.py @ 14146

Last change on this file since 14146 was 14146, checked in by sil, 12 years ago

Seems I have a working setup.py and MANIFEST.in for a client package. See #11

File size: 3.8 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    license = 'GPL',
11    long_description = '''\
12CMT is a Cluster Management Tool originally created at SARA Computing and \
13Networking Services, which is based in Amsterdam and known as SARA nowadays.''',
14
15    platforms = ['linux-x86_64'],
16
17    # see: http://pypi.python.org/pypi?:action=list_classifiers
18    classifiers = [
19        #'Development Status :: 4 - Beta',
20        'Development Status :: 5 - Production/Stable',
21        'Environment :: Console',
22        'Environment :: Web Environment',
23        'Framework :: Django',
24        'Intended Audience :: System Administrators',
25        'License ::  OSI Approved :: GNU General Public License (GPL)',
26        'Natural Language :: English',
27        'Operating System :: POSIX :: Linux',
28        'Programming Language :: Python :: 2.6',
29        'Topic :: Database :: Front-Ends',
30        'Topic :: System :: Clustering',
31        'Topic :: System :: System Administration',
32        'Topic :: Utilities',
33    ],
34
35
36
37# http://docs.python.org/distutils/setupscript.html#listing-whole-packages
38# The packages option tells the Distutils to process (build, distribute, install, etc.) all pure Python modules found in each package mentioned in the packages list. In order to do this, of course, there has to be a correspondence between package names and directories in the filesystem. The default correspondence is the most obvious one, i.e. package distutils is found in the directory distutils relative to the distribution root. Thus, when you say packages = ['foo'] in your setup script, you are promising that the Distutils will find a file foo/__init__.py (which might be spelled differently on your system, but you get the idea) relative to the directory where your setup script lives.
39#
40    packages = ['', 'sara_cmt', 'sara_cmt.cluster', 'sara_cmt.cluster.templatetags'],
41    #packages = ['sara_cmt', 'sara_cmt.cluster', 'sara_cmt.cluster.templatetags'],
42
43# http://docs.python.org/distutils/setupscript.html#listing-individual-modules
44# 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.
45#
46#    py_modules = ['mod1', 'pkg.mod2'],
47    #py_modules = ['cmt.py'],
48
49# http://docs.python.org/distutils/setupscript.html#relationships-between-distributions-and-packages
50# 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.
51#
52    requires = ['Django (>=1.2)', 'IPy (>=0.75)', 'django_extensions (>=0.4)', 'django_tagging (>=0.3.1)', 'psycopg2 (>=2.4.4)', 'Python (>=2.6)'],
53    #provides
54    #obsoletes
55
56    # http://docs.python.org/distutils/setupscript.html#installing-scripts
57    #
58    #scripts = ['cmt.py'],
59    #scripts = ['cmt', 'cmt.py'],
60
61    # http://docs.python.org/distutils/setupscript.html#installing-package-data
62    # 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.
63    #package_data = {'': ['cmt', 'cmt.py'],},
64    package_dir = {'sara_cmt': 'sara_cmt'},
65    package_data = {'sara_cmt': ['apache/django.wsgi']},
66)
67#setup(
68#    #maintainer = ''
69#    #maintainer_email = ''
70#
71#    data_files = [('config', ['config/cmt.cfg'])],
72#)
Note: See TracBrowser for help on using the repository browser.