Skip to content

Commit

Permalink
Merge pull request #89 from zopefoundation/issue88
Browse files Browse the repository at this point in the history
Fix wheel building for PyPy.
  • Loading branch information
jamadden committed Aug 23, 2018
2 parents 341ac6a + 96d670f commit 9e7bd4f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ install:
- pip install -U -e .[test]
script:
- python --version
# make sure we can build a wheel
- python setup.py bdist_wheel
# coverage makes PyPy run about 3x slower, but the tests only take
# .4s to begin with (the whole process takes about 1.5), so that's
# still only 4.5s, which is maneagable.
Expand Down
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
4.4.1 (unreleased)
------------------

- Nothing changed yet.
- Fix installation of source packages on PyPy. See `issue 88
<https://github.com/zopefoundation/persistent/issues/88>`_.


4.4.0 (2018-08-22)
Expand Down
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ def _read_file(filename):
# anti-optimizations (the C extension compatibility layer is known-slow,
# and defeats JIT opportunities).
if is_pypy or is_jython:
ext_modules = headers = []
# Note that all the lists we pass to setuptools must be distinct
# objects, or bad things happen. See https://github.com/zopefoundation/persistent/issues/88
ext_modules = []
headers = []
else:
ext_modules = [
Extension(
Expand Down

0 comments on commit 9e7bd4f

Please sign in to comment.