diff options
author | Tres Seaver <tseaver@palladion.com> | 2016-04-14 14:03:12 -0400 |
---|---|---|
committer | Tres Seaver <tseaver@palladion.com> | 2016-04-14 14:03:12 -0400 |
commit | 3e0b584b084815a3601e6efcf77976f19e84c417 (patch) | |
tree | 6561c0b1dc5bc472afbb4110f2bc769d1d16bc9b /setup.py | |
parent | 1f70adee7a67c7a64326079036d77c6bb4a28348 (diff) | |
download | zope-interface-add-pure-test-support.tar.gz |
Add support for building/testing w/ 'PURE_PYTHON' defined.add-pure-test-support
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -79,11 +79,12 @@ else: py_impl = getattr(platform, 'python_implementation', lambda: None) is_pypy = py_impl() == 'PyPy' is_jython = 'java' in sys.platform + is_pure = 'PURE_PYTHON' in os.environ # Jython cannot build the C optimizations, while on PyPy they are # anti-optimizations (the C extension compatibility layer is known-slow, # and defeats JIT opportunities). - if is_pypy or is_jython: + if is_pypy or is_jython or is_pure: features = {} else: features = {'codeoptimization': codeoptimization} |