Skip to content

Commit

Permalink
Remove checking of PURE_PYTHON at build time.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamadden committed Jan 20, 2020
1 parent 572de2e commit 439d002
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,19 @@ def _unavailable(self, e):
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 or is_pure:
if is_pypy or is_jython:
ext_modules = []
else:
ext_modules = codeoptimization
tests_require = ['zope.event']
testing_extras = tests_require + ['nose', 'coverage']
tests_require = [
'coverage',
'zope.event',
]
testing_extras = tests_require


def read(*rnames):
Expand Down

0 comments on commit 439d002

Please sign in to comment.