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

root/tags/cherrypy-2.1.0-rc1/setup.py

Revision 654 (checked in by rdelon, 3 years ago)

Preparing for 2.1.0-rc1 release

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
13 required_python_version = '2.3'
14
15 ###############################################################################
16 # arguments for the setup command
17 ###############################################################################
18 name = "CherryPy"
19 version = "2.1.0-rc1"
20 desc = "Object-Oriented web development framework"
21 long_desc = "CherryPy is a pythonic, object-oriented web development framework"
22 classifiers=[
23     "Development Status :: Stable",
24     "Intended Audience :: Developers",
25     "License :: Freely Distributable",
26     "Programming Language :: Python",
27     "Topic :: Internet ",
28     "Topic :: Software Development :: Libraries :: Application Frameworks",
29 ]
30 author="CherryPy Team"
31 author_email="team@cherrypy.org"
32 url="http://www.cherrypy.org"
33 cp_license="BSD"
34 packages=[
35     "cherrypy", "cherrypy.lib", "cherrypy.lib.filter",
36     "cherrypy.tutorial", "cherrypy.test",
37 ]
38 download_url="http://sourceforge.net/project/showfiles.php?group_id=56099"
39 data_files=[
40     ('cherrypy/tutorial',
41         [
42             'cherrypy/tutorial/tutorial.conf',
43             'cherrypy/tutorial/README.txt',
44             'cherrypy/tutorial/ReturnVsYield.pdf',
45             'cherrypy/tutorial/custom_error.html',
46         ]
47     ),
48     ('cherrypy', ['cherrypy/favicon.ico',]),
49     ('cherrypy/test', ['cherrypy/test/style.css',]),
50     ('cherrypy/test/static', ['cherrypy/test/static/index.html',
51                               'cherrypy/test/static/has space.html',]),
52 ]
53 ###############################################################################
54 # end arguments for setup
55 ###############################################################################
56
57 def main():
58     if sys.version < required_python_version:
59         s = "I'm sorry, but %s %s requires Python %s or later."
60         print s % (name, version, required_python_version)
61         sys.exit(1)
62
63     # set default location for "data_files" to platform specific "site-packages"
64     # location
65     for scheme in INSTALL_SCHEMES.values():
66         scheme['data'] = scheme['purelib']
67
68     setup(
69         name=name,
70         version=version,
71         description=desc,
72         long_description=long_desc,
73         classifiers=classifiers,
74         author=author,
75         author_email=author_email,
76         url=url,
77         license=cp_license,
78         packages=packages,
79         download_url=download_url,
80         data_files=data_files,
81     )
82
83 if __name__ == "__main__":
84     main()
85
Note: See TracBrowser for help on using the browser.

Hosted by WebFaction

Log in as guest/cpguest to create tickets