~aafshar/storm/automatic-table-schema-generation

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Gustavo Niemeyer
  • Date: 2007-08-07 14:51:21 UTC
  • mfrom: (142.2.5 need-for-speed)
  • Revision ID: gustavo@niemeyer.net-20070807145121-hj61uxhh0oxkhh24
Merged need-for-speed branch [r=jkakar,radix] [f=126875]

This branch introduces a new cextensions C module which offers faster
versions of a few core types in Storm.  It's not yet built by default,
as more testing is needed before considering it as a good alternative.

A bug was also fixed: ResultSet.cached() wasn't behaving properly when
working with dead objects.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/env python
2
2
 
3
3
try:
4
 
    from setuptools import setup
 
4
    from setuptools import setup, Extension
5
5
except ImportError:
6
 
    from distutils.core import setup
 
6
    from distutils.core import setup, Extension
 
7
 
 
8
 
 
9
BUILD_CEXTENSIONS = False
7
10
 
8
11
 
9
12
setup(
26
29
        "Topic :: Database :: Front-Ends",
27
30
        "Topic :: Software Development :: Libraries :: Python Modules",
28
31
    ],
 
32
    ext_modules=(BUILD_CEXTENSIONS and
 
33
                 [Extension("storm.cextensions", ["storm/cextensions.c"])])
29
34
)