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:
Davide Andreoli 2013-09-15 12:59:39 +02:00
parent 8cee72625c
commit 50a70d2933
1 changed files with 2 additions and 1 deletions

View File

@ -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)