CherryPy / setup.py

John P. Speno b5df5e0 







Remi Delon bac787f 
John P. Speno b5df5e0 
Remi Delon 83a5ac2 


Remi Delon c74b0d9 
John P. Speno b5df5e0 
Remi Delon c74b0d9 
John P. Speno b5df5e0 



Christian Wyglen… 7ce560c 
Robert Brewer 42811c1 

John P. Speno b5df5e0 
Christian Wyglen… 9d68c3f 

Robert Brewer 42811c1 
John P. Speno b5df5e0 
Robert Brewer 42811c1 

John P. Speno b5df5e0 
Robert Brewer 42811c1 
John P. Speno b5df5e0 






Robert Brewer 164fee2 
Robert Brewer 2475459 

John P. Speno b5df5e0 
Christian Wyglen… 7ce560c 
John P. Speno b5df5e0 




Remi Delon 0a188d8 
Michael Robinson 7398262 
John P. Speno b5df5e0 



Robert Brewer 0ae611c 
Remi Delon 7ecb021 
John P. Speno b5df5e0 



Remi Delon e40290e 

John P. Speno b5df5e0 



Remi Delon e40290e 
John P. Speno b5df5e0 




Christian Wyglen… 7a8bcef 
John P. Speno b5df5e0 











Remi Delon e40290e 

John P. Speno b5df5e0 

"""Installs CherryPy using distutils

Run:
    python setup.py install

to install this package.
"""

from distutils.core import setup
from distutils.command.install import INSTALL_SCHEMES
import sys
import os
import shutil

required_python_version = '2.3'

###############################################################################
# arguments for the setup command
###############################################################################
name = "CherryPy"
version = "3.0.2"
desc = "Object-Oriented HTTP framework"
long_desc = "CherryPy is a pythonic, object-oriented HTTP framework"
classifiers=[
    "Development Status :: 5 - Production/Stable",
    #"Development Status :: 4 - Beta",
    "Environment :: Web Environment",
    "Intended Audience :: Developers",
    "License :: Freely Distributable",
    "Operating System :: OS Independent",
    "Programming Language :: Python",
    "Topic :: Internet :: WWW/HTTP :: Dynamic Content",
    "Topic :: Software Development :: Libraries :: Application Frameworks",
]
author="CherryPy Team"
author_email="team@cherrypy.org"
url="http://www.cherrypy.org"
cp_license="BSD"
packages=[
    "cherrypy", "cherrypy.lib",
    "cherrypy.tutorial", "cherrypy.test",
    "cherrypy.wsgiserver",
]
download_url="http://download.cherrypy.org/cherrypy/3.0.2/"
data_files=[
    ('cherrypy/tutorial',
        [
            'cherrypy/tutorial/tutorial.conf',
            'cherrypy/tutorial/README.txt',
            'cherrypy/tutorial/pdf_file.pdf',
            'cherrypy/tutorial/custom_error.html',
        ]
    ),
    ('cherrypy', ['cherrypy/favicon.ico',]),
    ('cherrypy/test', ['cherrypy/test/style.css',]),
    ('cherrypy/test/static', ['cherrypy/test/static/index.html',
                              'cherrypy/test/static/dirback.jpg',]),
]
###############################################################################
# end arguments for setup
###############################################################################


def main():
    if sys.version < required_python_version:
        s = "I'm sorry, but %s %s requires Python %s or later."
        print s % (name, version, required_python_version)
        sys.exit(1)
    # set default location for "data_files" to platform specific "site-packages"
    # location
    for scheme in INSTALL_SCHEMES.values():
        scheme['data'] = scheme['purelib']

    dist = setup(
        name=name,
        version=version,
        description=desc,
        long_description=long_desc,
        classifiers=classifiers,
        author=author,
        author_email=author_email,
        url=url,
        license=cp_license,
        packages=packages,
        download_url=download_url,
        data_files=data_files,
    )


if __name__ == "__main__":
    main()
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.