From 3e0b584b084815a3601e6efcf77976f19e84c417 Mon Sep 17 00:00:00 2001 From: Tres Seaver Date: Thu, 14 Apr 2016 14:03:12 -0400 Subject: Add support for building/testing w/ 'PURE_PYTHON' defined. --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index ef10ca1..8879c5c 100644 --- a/setup.py +++ b/setup.py @@ -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} -- cgit v1.2.1