Commit 3ed48f29 authored by Ralf Schmitt's avatar Ralf Schmitt

setup.py: don't run ./configure if --libevent argument doesn't point to a...

setup.py: don't run ./configure if --libevent argument doesn't point to a libevent source directory.
I try to be compatible with the old behaviour here. Maybe setup.py should abort instead.
parent 752dcb30
......@@ -270,7 +270,9 @@ else:
sources.append(filename)
else:
libraries = ['event']
if libevent_source_path and os.path.exists(os.path.join(libevent_source_path, ".libs")):
if (libevent_source_path
and (exists(join(libevent_source_path, ".libs"))
or not exists(join(libevent_source_path, "configure")))):
enable_libevent_source_path()
gevent_core = Extension(name='gevent.core',
......
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