setup.py: Fix check for Cython when building from git source

This commit is contained in:
Kai Huuhko 2014-09-10 20:04:18 +03:00
parent 2d3784e8cb
commit cf358655c0
1 changed files with 6 additions and 0 deletions

View File

@ -113,6 +113,12 @@ else:
from Cython.Build import cythonize
import Cython.Compiler.Options
except ImportError:
if not os.path.exists(os.path.join(script_path, "efl/eo/efl.eo.c")):
raise SystemExit(
"Requires Cython >= %s (http://cython.org/)" % (
CYTHON_MIN_VERSION
)
)
module_suffix = ".c"
from distutils.command.build_ext import build_ext