if WIN: # Make sure the env vars that make.cmd needs are set if not os.environ.get('PYTHON_EXE'): os.environ['PYTHON_EXE'] = 'pypy' if PYPY else 'python' if not os.environ.get('PYEXE'): os.environ['PYEXE'] = os.environ['PYTHON_EXE'] if sys.version_info[:2] < (2, 7): raise Exception("Please install gevent 1.1 for Python 2.6") if PYPY and sys.pypy_version_info[:3] < (2, 6, 1): # pylint:disable=no-member # We have to have CFFI >= 1.3.0, and this platform cannot upgrade # it. raise Exception("PyPy >= 2.6.1 is required") __version__ = read_version() from _setuplibev import libev_configure_command from _setuplibev import LIBEV_EMBED from _setuplibev import CORE from _setupares import ARES SEMAPHORE = Extension(name="gevent._semaphore", sources=["src/gevent/gevent._semaphore.c"]) EXT_MODULES = [ CORE, ARES, SEMAPHORE, ]
# Make sure the env vars that make.cmd needs are set if not os.environ.get("PYTHON_EXE"): os.environ["PYTHON_EXE"] = "pypy" if PYPY else "python" if not os.environ.get("PYEXE"): os.environ["PYEXE"] = os.environ["PYTHON_EXE"] if sys.version_info[:2] < (2, 7): raise Exception("Please install gevent 1.1 for Python 2.6") if PYPY and sys.pypy_version_info[:3] < (2, 6, 1): # pylint:disable=no-member # We have to have CFFI >= 1.3.0, and this platform cannot upgrade # it. raise Exception("PyPy >= 2.6.1 is required") __version__ = read_version() from _setuplibev import libev_configure_command from _setuplibev import LIBEV_EMBED from _setuplibev import CORE from _setupares import ARES SEMAPHORE = Extension(name="gevent._semaphore", sources=["src/gevent/gevent._semaphore.c"]) EXT_MODULES = [CORE, ARES, SEMAPHORE] cffi_modules = ["src/gevent/libev/_corecffi_build.py:ffi"] if PYPY: