diff options
author | Bob Ippolito <bob@redivi.com> | 2017-11-24 09:13:46 -0800 |
---|---|---|
committer | Bob Ippolito <bob@redivi.com> | 2017-11-24 09:15:02 -0800 |
commit | 518401fc950fb76848f9a170e3cfb35b5dfcfbff (patch) | |
tree | 1a370b94d2d7b31f2be463c8da253c85cadc77d4 /setup.py | |
parent | 708026ea6ee10ffa15b9a28d5b06bb9b45a9da24 (diff) | |
download | simplejson-518401fc950fb76848f9a170e3cfb35b5dfcfbff.tar.gz |
fail build in CI if speedups do not build correctly
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1,6 +1,7 @@ #!/usr/bin/env python from __future__ import with_statement +import os import sys try: from setuptools import setup, Extension, Command @@ -112,6 +113,8 @@ def run_setup(with_binary): try: run_setup(not IS_PYPY) except BuildFailed: + if os.environ.get('REQUIRE_SPEEDUPS'): + raise BUILD_EXT_WARNING = ("WARNING: The C extension could not be compiled, " "speedups are not enabled.") print('*' * 75) |