Commit 271a7ae6 authored by Denis Bilenko's avatar Denis Bilenko

setup.py: respect -1 and -2

parent 213c08ef
......@@ -268,10 +268,11 @@ def guess_libevent_major():
if not sys.argv[1:] or '-h' in sys.argv or '--help' in ' '.join(sys.argv):
print __doc__
else:
LIBEVENT_MAJOR = guess_libevent_major()
if LIBEVENT_MAJOR is None:
print 'Cannot guess the version of libevent installed on your system. DEFAULTING TO 1.x.x'
LIBEVENT_MAJOR = 1
LIBEVENT_MAJOR = guess_libevent_major()
if LIBEVENT_MAJOR is None:
print 'Cannot guess the version of libevent installed on your system. DEFAULTING TO 1.x.x'
LIBEVENT_MAJOR = 1
extra_compile_args.append( '-DUSE_LIBEVENT_%s' % LIBEVENT_MAJOR )
if static:
......
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