Commit 4e58ed71 authored by Denis Bilenko's avatar Denis Bilenko

setup.py: insignificant changes

parent c4345159
......@@ -111,7 +111,7 @@ def configure_ares():
if ares_embed:
ARES.sources += sorted(glob('c-ares/*.c'))
ARES.sources += expand('c-ares/*.c')
if sys.platform == 'win32':
ARES.libraries += ['advapi32']
ARES.define_macros += [('CARES_STATICLIB', '')]
......@@ -123,15 +123,17 @@ if ares_embed:
ARES.define_macros += [('CARES_EMBED', '')]
class my_build_ext(build_ext):
def make(done=[]):
if not done:
if os.system('make'):
sys.exit(1)
done.append(1)
make_run = []
class my_build_ext(build_ext):
def gevent_prepare(self, ext):
if not self.make_run:
if os.system('make'):
sys.exit(1)
self.make_run.append(1)
make()
configure = getattr(ext, 'configure', None)
if configure:
configure()
......
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