Skip to content
This repository has been archived by the owner on May 4, 2019. It is now read-only.

Commit

Permalink
quick hack to get it working with pypy/pypycore
Browse files Browse the repository at this point in the history
  • Loading branch information
schmir committed Feb 6, 2013
1 parent 454a77c commit aaed303
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
File renamed without changes.
6 changes: 3 additions & 3 deletions gevent/hub.py
Expand Up @@ -9,9 +9,9 @@
greenlet_version = getattr(greenlet, '__version__', None)
if greenlet_version:
greenlet_version_info = [int(x) for x in greenlet_version.split('.')]
if not greenlet_version or greenlet_version_info[:3] < [0, 3, 2]:
raise ImportError('''Your version of greenlet (%s) is too old (required >= 0.3.2)
You can get a newer version of greenlet from http://pypi.python.org/pypi/greenlet/''' % (greenlet_version, ))
# if not greenlet_version or greenlet_version_info[:3] < [0, 3, 2]:
# raise ImportError('''Your version of greenlet (%s) is too old (required >= 0.3.2)
# You can get a newer version of greenlet from http://pypi.python.org/pypi/greenlet/''' % (greenlet_version, ))
from greenlet import greenlet, getcurrent, GreenletExit


Expand Down
2 changes: 2 additions & 0 deletions setup.py
Expand Up @@ -92,6 +92,8 @@ def expand(*lst):
Extension(name="gevent._util",
sources=["gevent/gevent._util.c"])]

ext_modules = []


def make_universal_header(filename, *defines):
defines = [('#define %s ' % define, define) for define in defines]
Expand Down

1 comment on commit aaed303

@Ivoz
Copy link

@Ivoz Ivoz commented on aaed303 Jun 6, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this be submitted to gevent proper for inclusion? I don't imagine that @denik would be against a swappable gevent core;

I'm not sure why hub.py is checking version dependencies.. shouldn't setup.py do that?

In any case, perhaps something like gevent.core.alternate could be checked to exist, before checking for proper greenlet version (if / elif).

Please sign in to comment.