diff --git a/setup.py b/setup.py index b5e0032..5a3c6d2 100755 --- a/setup.py +++ b/setup.py @@ -20,7 +20,7 @@ VERSION = "%d.%d" % (vers[0], vers[1] if vers[2] < 99 else vers[1] + 1) # dependencies CYTHON_MIN_VERSION = "0.21" -# CYTHON_BLACKLIST = ("0.21.1", "0.21.2") # only used if py3 +CYTHON_BLACKLIST = ("0.23") EFL_MIN_VER = RELEASE ELM_MIN_VER = RELEASE @@ -230,10 +230,10 @@ if set(("build", "build_ext", "install", "bdist", "sdist")) & set(sys.argv): raise SystemExit("too old! Found %s Needed %s" % ( Cython.__version__, CYTHON_MIN_VERSION)) - # Cython PyMethod_New() is broken for py3! blacklisted - # if sys.version_info[0] > 2 and Cython.__version__ in CYTHON_BLACKLIST: - # raise SystemExit("found %s, it's broken! Need another release" % - # Cython.__version__) + # check black-listed releases + if Cython.__version__.startswith(CYTHON_BLACKLIST): + raise SystemExit("found %s, it's broken! Need another release" % + Cython.__version__) sys.stdout.write("OK, found %s\n" % Cython.__version__) module_suffix = ".pyx"