Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use modern CFFI methods; drop unsupported PyPy versions < 2.6.1 #693

Merged
merged 11 commits into from
Nov 30, 2015

Conversation

jamadden
Copy link
Member

As mentioned on the mailing list and twitter, this PR modernizes the CFFI usage and requires CFFI >= 1.3.1, and thus PyPy >= 2.6.1. I didn't get any feedback about anyone requiring older PyPy versions. gevent already needed PyPy >= 2.6.1 to really function correctly with signals and only functioned in a degraded mode on older PyPy versions.

In addition to using supported methods, a side benefit of modern CFFI is much faster import times.

To use a newer version of PyPy on Travis CI, this required switching the build matrix to pyvenv, which cleans up the matrix and gives us explicit control over Python versions. (Code based on hypothesis build.)

In addition, this PR fixes an issue with the io watcher discovered during testing (could be ported independently). It also does the groundwork for supporting CFFI on Windows, but I ran into several problems with that (documented in comments).

  • fixes a cythoncpp issue on Windows/PyPy (and likely a resource warning on Py3)
  • refactors the Windows build

This lets the CFFI backend be used on CPython and is more maintainable
going forward. Initial benchmarking of the CFFI backend on CPython
shows it to be a few percent slower than the cython backend, but
probably not significantly so.

Note that the tests are not expected to pass on Travis/pypy yet,
because Travis pypy is too old. Use of pyenv may be required.
…. Fix a bug changing the fd and events of a io watcher and test it. Test pypy/windows.
…libev_vfd if we don't need it. Update install.ps1.
…e threaded file ops won't be used, and c-ares isn't a recommended configuration.
@jamadden jamadden added this to the 1.1 milestone Nov 30, 2015
@jamadden
Copy link
Member Author

The Windows/AppVeyor build is experiencing some timing related failures. This does not seem to be related to this branch as even simple non-code changes to master are also failing for the same reasons.

jamadden added a commit that referenced this pull request Nov 30, 2015
Use modern CFFI methods; drop unsupported PyPy versions < 2.6.1
@jamadden jamadden merged commit 941b35e into master Nov 30, 2015
@jamadden jamadden deleted the modern-cffi branch February 24, 2016 13:32
@jamadden jamadden restored the modern-cffi branch January 12, 2017 13:06
@jamadden jamadden deleted the modern-cffi branch January 12, 2017 13:14
hashbrowncipher pushed a commit to hashbrowncipher/gevent that referenced this pull request Oct 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant