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

Ticket #74: setup.py.patch

  • setup.py

    old new  
    1 from distutils.core import setup 
     1from distutils.core import setup 
     2from distutils.command.install import INSTALL_SCHEMES 
     3 
     4# set default location for "data_files" to platform specific "site-packages" location 
     5for scheme in INSTALL_SCHEMES.values(): 
     6    scheme['data'] = scheme['purelib'] 
    27 
    38import sys 
    49# patch distutils if it can't cope with the "classifiers" keyword 
     
    2328      url="http://www.cherrypy.org", 
    2429      license="BSD", 
    2530      packages=["cherrypy", "cherrypy.lib", "cherrypy.lib.filter", "cherrypy.lib.filter.sessionfilter", "cherrypy.tutorial", "cherrypy.test"], 
    26       download_url="http://www.cherrypy.org/wiki/CherryPyDownload", 
     31      download_url="http://www.cherrypy.org/wiki/CherryPyDownload", 
     32      data_files=[('cherrypy/tutorial', ['cherrypy/tutorial/tutorial.conf','cherrypy/tutorial/README.txt',]), 
     33                  ('cherrypy', ['cherrypy/favicon.ico',]), 
     34                  ('cherrypy/test', ['cherrypy/test/style.css',]), 
     35                  ('cherrypy/test/static', ['cherrypy/test/static/index.html',]), 
     36                  ], 
    2737) 
    2838 

Hosted by WebFaction

Log in as guest/cpguest to create tickets