1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
#!/usr/bin/python2.3
#$HeadURL: svn+ssh://svn/repos/trunk/quixote/setup.py $
#$Id: setup.py 24581 2004-07-01 15:57:17Z nascheme $
# Setup script for Quixote
__revision__ = "$Id: setup.py 24581 2004-07-01 15:57:17Z nascheme $"
import sys, os
from distutils import core
from distutils.extension import Extension
from qx_distutils import qx_build_py
# a fast htmltext type
htmltext = Extension(name="quixote._c_htmltext",
sources=["src/_c_htmltext.c"])
# faster import hook for PTL modules
cimport = Extension(name="quixote.cimport",
sources=["src/cimport.c"])
kw = {'name': "Quixote",
'version': "1.0",
'description': "A highly Pythonic Web application framework",
'author': "MEMS Exchange",
'author_email': "quixote@mems-exchange.org",
'url': "http://www.mems-exchange.org/software/quixote/",
'license': "CNRI Open Source License (see LICENSE.txt)",
'package_dir': {'quixote':os.curdir},
'packages': ['quixote', 'quixote.demo', 'quixote.form',
'quixote.form2', 'quixote.server'],
'ext_modules': [],
'cmdclass': {'build_py': qx_build_py},
}
build_extensions = sys.platform != 'win32'
if build_extensions:
# The _c_htmltext module requires Python 2.2 features.
if sys.hexversion >= 0x20200a1:
kw['ext_modules'].append(htmltext)
kw['ext_modules'].append(cimport)
# If we're running Python 2.3, add extra information
if hasattr(core, 'setup_keywords'):
if 'classifiers' in core.setup_keywords:
kw['classifiers'] = ['Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'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',
]
if 'download_url' in core.setup_keywords:
kw['download_url'] = ('http://www.mems-exchange.org/software/files'
'/quixote/Quixote-%s.tar.gz' % kw['version'])
core.setup(**kw)
|