diff options
author | Philip Jenvey <pjenvey@underboss.org> | 2011-04-13 18:45:58 -0700 |
---|---|---|
committer | Philip Jenvey <pjenvey@underboss.org> | 2011-04-13 18:45:58 -0700 |
commit | e6fd32e17380dfe758050fab12987e14c46f70c4 (patch) | |
tree | 9edf676104614c56feeb95c3acb3c1514b2b2b19 /setup.py | |
parent | a2094b1b6fe9f93af3a044cfb34a53c82a2ca330 (diff) | |
download | sqlalchemy-e6fd32e17380dfe758050fab12987e14c46f70c4.tar.gz |
explicitly disable the cextension on Python 3 until it's updated for it
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |