Commit ba67c148 authored by Denis Bilenko's avatar Denis Bilenko

setup.py: fix 2.4 compatibility

parent b83b4935
...@@ -17,6 +17,15 @@ system_dirs = ['/usr/lib/libevent.*', ...@@ -17,6 +17,15 @@ system_dirs = ['/usr/lib/libevent.*',
'/usr/local/lib64/libevent.*'] '/usr/local/lib64/libevent.*']
try:
any
except NameError:
def any(iterable):
for i in iterable:
if i:
return True
if ev_dir is None and any(glob.glob(system_dir) for system_dir in system_dirs): if ev_dir is None and any(glob.glob(system_dir) for system_dir in system_dirs):
print 'found system libevent for', sys.platform print 'found system libevent for', sys.platform
gevent_core = Extension(name=name, gevent_core = Extension(name=name,
......
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