Commit 9c5d4d52 authored by Jason Madden's avatar Jason Madden

Import gevent.core.loop from gevent.__init__ on PyPy. Fixes #619.

parent dde3100c
......@@ -7,7 +7,16 @@
Unreleased
==========
- Nothing yet.
- Fix an ``AttributeError`` from ``gevent.monkey.patch_builtins`` on
Python 2 when the `future`_ library is also installed. Reported by
Carlos Sanchez.
- PyPy: Fix a ``DistutilsModuleError`` or ``ImportError`` if the CFFI
module backing ``gevent.core`` needs to be compiled when the hub is
initialized. Now, the module will be compiled when gevent is
imported. Reported in :issue:`619` by Thinh Nguyen with
contributions by Jay Oster and Matt Dupre.
.. _future: http://python-future.org
1.1b2 (Aug 5, 2015)
===================
......
......@@ -70,3 +70,13 @@ def __dependencies_for_freezing():
import signal
del __dependencies_for_freezing
if PYPY:
# We need to make sure that the CFFI compilation is complete if
# need be. Without this, we can get ImportError(ImportError:
# Cannot import 'core' from ...) from the hub or
# DistutilsModuleError (on OS X) depending on who first imports and inits
# the hub. See https://github.com/gevent/gevent/issues/619 (There
# is no automated test for this.)
from gevent.core import loop
del loop
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment