summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorKai Huuhko <kai.huuhko@gmail.com>2016-08-14 04:27:45 +0300
committerKai Huuhko <kai.huuhko@gmail.com>2016-08-14 04:27:45 +0300
commita575effa6b0bb298b4342e52147feb44970a6c3c (patch)
treea9ea74225f27c70e18366a094f42a84fb551672e /setup.py
parent3d31901da738f0f969c0cffc3429cd11f160ba34 (diff)
setup.py: Check that pregenerated files are available when requested
Diffstat (limited to 'setup.py')
-rwxr-xr-xsetup.py8
1 files changed, 7 insertions, 1 deletions
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):
190# === use cython or pre-generated C files === 190# === use cython or pre-generated C files ===
191USE_CYTHON = False 191USE_CYTHON = False
192if os.getenv("DISABLE_CYTHON") is not None: 192if os.getenv("DISABLE_CYTHON") is not None:
193 USE_CYTHON = False 193 if os.path.exists(os.path.join(script_path, "efl/eo/efl.eo.c")):
194 USE_CYTHON = False
195 else:
196 sys.exit(
197 "You have requested to use pregenerated files with DISABLE_CYTHON\n"
198 "but the files are not available!\n"
199 "Unset DISABLE_CYTHON from your build environment and try again.")
194elif os.getenv("ENABLE_CYTHON") is not None: 200elif os.getenv("ENABLE_CYTHON") is not None:
195 USE_CYTHON = True 201 USE_CYTHON = True
196elif not os.path.exists(os.path.join(script_path, "efl/eo/efl.eo.c")): 202elif not os.path.exists(os.path.join(script_path, "efl/eo/efl.eo.c")):