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

root/tags/cherrypy-2.2.1/setup.py

Revision 1066 (checked in by dowski, 3 years ago)

Tagging 2.2.1

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

Hosted by WebFaction

Log in as guest/cpguest to create tickets