Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

root/tags/cherrypy-3.1.0/setup.py

Revision 2007 (checked in by fumanchu, 5 months ago)

Marking CP 3.1.0 final.

  • Property svn:eol-style set to native
Line 
1 """Installs CherryPy using distutils
2
3 Run:
4     python setup.py install
5
6 to install this package.
7 """
8
9 from distutils.core import setup
10 from distutils.command.install import INSTALL_SCHEMES
11 import sys
12 import os
13 import shutil
14
15 required_python_version = '2.3'
16
17 ###############################################################################
18 # arguments for the setup command
19 ###############################################################################
20 name = "CherryPy"
21 version = "3.1.0"
22 desc = "Object-Oriented HTTP framework"
23 long_desc = "CherryPy is a pythonic, object-oriented HTTP framework"
24 classifiers=[
25     #"Development Status :: 5 - Production/Stable",
26     "Development Status :: 5 - Production/Stable",
27     "Environment :: Web Environment",
28     "Intended Audience :: Developers",
29     "License :: Freely Distributable",
30     "Operating System :: OS Independent",
31     "Programming Language :: Python",
32     "Topic :: Internet :: WWW/HTTP :: Dynamic Content",
33     "Topic :: Software Development :: Libraries :: Application Frameworks",
34 ]
35 author="CherryPy Team"
36 author_email="team@cherrypy.org"
37 url="http://www.cherrypy.org"
38 cp_license="BSD"
39 packages=[
40     "cherrypy", "cherrypy.lib",
41     "cherrypy.tutorial", "cherrypy.test",
42     "cherrypy.wsgiserver", "cherrypy.process",
43 ]
44 download_url="http://download.cherrypy.org/cherrypy/3.1.0/"
45 data_files=[
46     ('cherrypy', ['cherrypy/cherryd',
47                   'cherrypy/favicon.ico',
48                   'cherrypy/LICENSE.txt',
49                   ]),
50     ('cherrypy/process', []),
51     ('cherrypy/scaffold', ['cherrypy/scaffold/example.conf',
52                            'cherrypy/scaffold/site.conf',
53                            ]),
54     ('cherrypy/scaffold/static', ['cherrypy/scaffold/static/made_with_cherrypy_small.png',
55                                   ]),
56     ('cherrypy/test', ['cherrypy/test/style.css',
57                        'cherrypy/test/test.pem',
58                        ]),
59     ('cherrypy/test/static', ['cherrypy/test/static/index.html',
60                               'cherrypy/test/static/dirback.jpg',]),
61     ('cherrypy/tutorial',
62         [
63             'cherrypy/tutorial/tutorial.conf',
64             'cherrypy/tutorial/README.txt',
65             'cherrypy/tutorial/pdf_file.pdf',
66             'cherrypy/tutorial/custom_error.html',
67         ]
68     ),
69 ]
70 ###############################################################################
71 # end arguments for setup
72 ###############################################################################
73
74
75 def main():
76     if sys.version < required_python_version:
77         s = "I'm sorry, but %s %s requires Python %s or later."
78         print s % (name, version, required_python_version)
79         sys.exit(1)
80     # set default location for "data_files" to
81     # platform specific "site-packages" location
82     for scheme in INSTALL_SCHEMES.values():
83         scheme['data'] = scheme['purelib']
84    
85     dist = setup(
86         name=name,
87         version=version,
88         description=desc,
89         long_description=long_desc,
90         classifiers=classifiers,
91         author=author,
92         author_email=author_email,
93         url=url,
94         license=cp_license,
95         packages=packages,
96         download_url=download_url,
97         data_files=data_files,
98     )
99
100
101 if __name__ == "__main__":
102     main()
Note: See TracBrowser for help on using the browser.

Hosted by WebFaction

Log in as guest/cpguest to create tickets