[Subversion] / RuleDispatch / setup.py  

View of /RuleDispatch/setup.py

Parent Directory | Revision Log
Revision: 2135 - (download) (as text)
Tue May 16 04:31:20 2006 UTC (17 years, 10 months ago) by pje
File size: 1078 byte(s)
Rename _speedups module for the convenience of people using py2exe, 
which doesn't correctly handle extension modules that are inside of 
packages.
#!/usr/bin/env python
"""Distutils setup file

RuleDispatch is Copyright 2004, 2005 by Phillip J. Eby; all rights reserved.
This software may be used under the same terms as Python or Zope, with NO
WARRANTIES OF ANY KIND WHATSOEVER.
"""

import ez_setup
ez_setup.use_setuptools()

from setuptools import setup, Feature, Extension, find_packages

speedups = Feature(
    "optional C speed-enhancement modules",
    standard = True,
    ext_modules = [
        Extension("dispatch._d_speedups", ["src/dispatch/_d_speedups.pyx"]),
    ]
)

setup(
    name="RuleDispatch",
    version="0.5a0",
    description="Rule-based Dispatching and Generic Functions",
    author="Phillip J. Eby",
    author_email="peak@eby-sarna.com",
    license="PSF or ZPL",
    install_requires = ['PyProtocols>=1.0a0dev'],
    #url="http://peak.telecommunity.com/PyProtocols.html",
    zip_safe    = True,
    test_suite  = 'dispatch.tests.test_suite',
    package_dir = {'':'src'},
    package_data = {'': ['*.txt']},
    packages    = find_packages('src'),
    features    = {'speedups': speedups}
)


cvs-admin@eby-sarna.com

Powered by ViewCVS 1.0-dev

ViewCVS and CVS Help