kuuko pushed a commit to branch master. http://git.enlightenment.org/bindings/python/python-efl.git/commit/?id=a575effa6b0bb298b4342e52147feb44970a6c3c
commit a575effa6b0bb298b4342e52147feb44970a6c3c Author: Kai Huuhko <[email protected]> Date: Sun Aug 14 04:27:45 2016 +0300 setup.py: Check that pregenerated files are available when requested --- setup.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 2cff90f..fc784f4 100755 --- a/setup.py +++ b/setup.py @@ -190,7 +190,13 @@ class Test(Command): # === use cython or pre-generated C files === USE_CYTHON = False if os.getenv("DISABLE_CYTHON") is not None: - USE_CYTHON = False + if os.path.exists(os.path.join(script_path, "efl/eo/efl.eo.c")): + USE_CYTHON = False + else: + sys.exit( + "You have requested to use pregenerated files with DISABLE_CYTHON\n" + "but the files are not available!\n" + "Unset DISABLE_CYTHON from your build environment and try again.") elif os.getenv("ENABLE_CYTHON") is not None: USE_CYTHON = True elif not os.path.exists(os.path.join(script_path, "efl/eo/efl.eo.c")): --
