def get_ext_modules(): if not cython_available: print 'nocy' eio_extension = Extension('eio', ['eio.c'], libraries=['pthread']) else: print 'cy' eio_extension = Extension('eio', ['eio.pyx'], libraries=['pthread']) eio_extension.configure = configure_eio return [eio_extension]
if rc == 0 and sys.platform == 'darwin': make_universal_header('ares_build.h', 'CARES_SIZEOF_LONG') make_universal_header('ares_config.h', 'SIZEOF_LONG', 'SIZEOF_SIZE_T', 'SIZEOF_TIME_T') finally: os.chdir(cwd) if libev_embed: CORE.define_macros += [('LIBEV_EMBED', '1'), ('EV_COMMON', ''), # we don't use void* data # libev watchers that we don't use currently: ('EV_CHECK_ENABLE', '0'), ('EV_CLEANUP_ENABLE', '0'), ('EV_EMBED_ENABLE', '0'), ("EV_PERIODIC_ENABLE", '0')] CORE.configure = configure_libev if sys.platform == "darwin": os.environ["CFLAGS"] = ("%s %s" % (os.environ.get("CFLAGS", ""), "-U__llvm__")).lstrip() else: CORE.libraries.append('ev') if ares_embed: ARES.sources += expand('c-ares/*.c') ARES.configure = configure_ares if sys.platform == 'win32': ARES.libraries += ['advapi32'] ARES.define_macros += [('CARES_STATICLIB', '')] else: ARES.define_macros += [('HAVE_CONFIG_H', '')] if sys.platform != 'darwin':