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

root/tags/cherrypy-3.0.0/setup.py

Revision 1546 (checked in by dowski, 2 years ago)

Preparing for the 3.0.0 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 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.0.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 :: 4 - Beta",
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 ]
43 download_url="http://download.cherrypy.org/cherrypy/3.0.0/"
44 data_files=[
45     ('cherrypy/tutorial',
46         [
47             'cherrypy/tutorial/tutorial.conf',
48             'cherrypy/tutorial/README.txt',
49             'cherrypy/tutorial/pdf_file.pdf',
50             'cherrypy/tutorial/custom_error.html',
51         ]
52     ),
53     ('cherrypy', ['cherrypy/favicon.ico',]),
54     ('cherrypy/test', ['cherrypy/test/style.css',]),
55     ('cherrypy/test/static', ['cherrypy/test/static/index.html',
56                               'cherrypy/test/static/dirback.jpg',]),
57 ]
58 ###############################################################################
59 # end arguments for setup
60 ###############################################################################
61
62
63 def main():
64     if sys.version < required_python_version:
65         s = "I'm sorry, but %s %s requires Python %s or later."
66         print s % (name, version, required_python_version)
67         sys.exit(1)
68     # set default location for "data_files" to platform specific "site-packages"
69     # location
70     for scheme in INSTALL_SCHEMES.values():
71         scheme['data'] = scheme['purelib']
72
73     dist = setup(
74         name=name,
75         version=version,
76         description=desc,
77         long_description=long_desc,
78         classifiers=classifiers,
79         author=author,
80         author_email=author_email,
81         url=url,
82         license=cp_license,
83         packages=packages,
84         download_url=download_url,
85         data_files=data_files,
86     )
87
88
89 if __name__ == "__main__":
90     main()
Note: See TracBrowser for help on using the browser.

Hosted by WebFaction

Log in as guest/cpguest to create tickets