]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
explicitly disable the cextension on Python 3 until it's updated for it
authorPhilip Jenvey <pjenvey@underboss.org>
Thu, 14 Apr 2011 01:45:58 +0000 (18:45 -0700)
committerPhilip Jenvey <pjenvey@underboss.org>
Thu, 14 Apr 2011 01:45:58 +0000 (18:45 -0700)
CHANGES
setup.py

diff --git a/CHANGES b/CHANGES
index 16cd316c668f2c5d3d4749aa1b61c1ac0e444e98..b1810f87421eb65abecf0ffeef019ec8d339c9cc 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -92,9 +92,9 @@ CHANGES
     (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
index f21b21454ec642e1c26011a80e6e238f166a5304..6dcdd834557aebfad56e1eb016421455d466360e 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -16,10 +16,13 @@ except ImportError:
     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
@@ -29,7 +32,6 @@ elif sys.version_info >= (3, 0):
     extra.update(
         use_2to3=True,
     )
-IS_PYPY = hasattr(sys, 'pypy_translation_info')
 
 ext_modules = [
     Extension('sqlalchemy.cprocessors',
@@ -243,7 +245,7 @@ def run_setup(with_cext):
 
 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