Python-EFL: fix the cython version check
If the cython import fail than min_ver is never defined and the except will fail badly
This commit is contained in:
parent
8cee72625c
commit
50a70d2933
3
setup.py
3
setup.py
|
@ -9,11 +9,12 @@ from distutils.version import StrictVersion
|
|||
|
||||
# Cython
|
||||
try:
|
||||
min_ver = "0.17.0"
|
||||
from Cython.Distutils import build_ext
|
||||
from Cython.Build import cythonize
|
||||
import Cython.Compiler.Options
|
||||
|
||||
min_ver, cur_ver = "0.17.0", Cython.__version__
|
||||
cur_ver = Cython.__version__
|
||||
assert StrictVersion(cur_ver) >= StrictVersion(min_ver)
|
||||
print("Found Cython: %s" % cur_ver)
|
||||
|
||||
|
|
Loading…
Reference in New Issue