(also in 0.6.7)
- engine
- - The C extension is now enabled by default with a
- fallback to pure python if it fails to compile.
- [ticket:2129]
+ - The C extension is now enabled by default on CPython
+ 2.x with a fallback to pure python if it fails to
+ compile. [ticket:2129]
- schema
- The 'useexisting' flag on Table has been superceded
from distutils.core import setup, Extension
Feature = None
+pypy = hasattr(sys, 'pypy_version_info')
+py3k = False
extra = {}
if sys.version_info < (2, 4):
raise Exception("SQLAlchemy requires Python 2.4 or higher.")
elif sys.version_info >= (3, 0):
+ py3k = True
# monkeypatch our preprocessor
# onto the 2to3 tool.
from sa2to3 import refactor_string
extra.update(
use_2to3=True,
)
-IS_PYPY = hasattr(sys, 'pypy_translation_info')
ext_modules = [
Extension('sqlalchemy.cprocessors',
try:
# Likely don't want the cextension built on PyPy+CPyExt
- run_setup(not IS_PYPY)
+ run_setup(not (pypy or py3k))
except BuildFailed, exc:
print '*' * 75
print exc.cause