From cf358655c079fb13ecf0f28e212f1ba20d443f61 Mon Sep 17 00:00:00 2001 From: Kai Huuhko Date: Wed, 10 Sep 2014 20:04:18 +0300 Subject: [PATCH] setup.py: Fix check for Cython when building from git source --- setup.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/setup.py b/setup.py index 864ce8a..8624512 100755 --- a/setup.py +++ b/setup.py @@ -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