SVN: r20446 - trunk/quixote
Andrew Kuchling <akuchlin-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected]> Mon, 27 Jan 2003 09:52:09 -0500
| Newsgroups | gmane.comp.web.quixote.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: akuchlin Date: 2003-01-27 09:52:08 -0500 (Mon, 27 Jan 2003) New Revision: 20446 Modified: trunk/quixote/setup.py Log: Rework setup.py so it can specify classifiers when run with Python 2.3 Modified: trunk/quixote/setup.py ============================================================================== --- trunk/quixote/setup.py (original) +++ trunk/quixote/setup.py 2003-01-27 09:52:09.000000000 -0500 @@ -5,28 +5,42 @@ __revision__ = "$Id$" import os -from distutils.core import setup +from distutils import core from distutils.extension import Extension from qx_distutils import qx_build_py htmltext = Extension(name="quixote._c_htmltext", - sources=["src/_c_htmltext.c"]) + sources=["src/_c_htmltext.c"]) -setup (name = "Quixote", - version = "0.6b2", - description = "A highly Pythonic Web application framework", - author = "MEMS Exchange", - author_email = "quixote-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected]", - url = "http://www.mems-exchange.org/software/quixote/", +kw = {'name': "Quixote", + 'version': "0.6b2", + 'description': "A highly Pythonic Web application framework", + 'author': "MEMS Exchange", + 'author_email': "quixote-fVcApmY9cLvQ3/1i3zOLAti2O/[email protected]", + 'url': "http://www.mems-exchange.org/software/quixote/", - package_dir = {'quixote':os.curdir}, - packages = ['quixote', 'quixote.demo', 'quixote.form', + 'package_dir': {'quixote':os.curdir}, + 'packages': ['quixote', 'quixote.demo', 'quixote.form', 'quixote.server'], - # Uncomment to enable the C implementation of the htmltext type - #ext_modules = [htmltext], + # Uncomment to enable the C implementation of the htmltext type + #'ext_modules': [htmltext], - cmdclass = {'build_py': qx_build_py}, - ) + 'cmdclass': {'build_py': qx_build_py}, + } +# If we're running Python 2.3, add classifiers +if hasattr(core, 'setup_keywords') and 'classifiers' in core.setup_keywords: + print 'class set' + + kw['classifiers'] = ['Development Status :: 4 - Beta', + 'Environment :: No Input/Output (Daemon)', + 'License :: OSI Approved :: Python License (CNRI Python License)', + 'Intended Audience :: Developers', + 'Operating System :: Unix', + 'Operating System :: Microsoft :: Windows', + 'Operating System :: MacOS :: MacOS X', + 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', + ] +core.setup(**kw)