diff options
author | R. Tyler Ballance <tyler@monkeypox.org> | 2010-04-10 15:12:28 -0700 |
---|---|---|
committer | R. Tyler Ballance <tyler@monkeypox.org> | 2010-06-24 11:48:45 -0700 |
commit | d5e6ce97204ac5ca02b0149072b0b631b9c115a2 (patch) | |
tree | c508c7f1c68e170b386f915820f748c15e1c61bd | |
parent | 8724436c90babf5a9e45580858749ad3050d0db3 (diff) | |
download | python-cheetah-d5e6ce97204ac5ca02b0149072b0b631b9c115a2.tar.gz |
Add a hidden environment flag to break builds when the C extensions fail
Change-Id: Ic3e30db0911d1899c30a955b5fd692da1be7f7c7
-rw-r--r-- | SetupTools.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/SetupTools.py b/SetupTools.py index 5892e72..6608d17 100644 --- a/SetupTools.py +++ b/SetupTools.py @@ -159,6 +159,8 @@ def run_setup(configurations): except BuildFailed, x: print("One or more C extensions failed to build.") print("Details: %s" % x) + if os.environ.get('CHEETAH_C_EXTENSIONS_REQUIRED'): + raise x print("Retrying without C extensions enabled.") del kws['ext_modules'] |