summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
authorPablo Galindo Salgado <Pablogsal@gmail.com>2021-07-30 15:21:09 +0100
committerGitHub <noreply@github.com>2021-07-30 16:21:09 +0200
commit7cad0bee80a536c7e47f54cf43174175834f30a0 (patch)
tree99a374e52a5f29194e463b81c04350b9259a01d7 /setup.py
parentf4367ba3c533fc2dc9e32aa431d674f715b911f2 (diff)
downloadcpython-git-7cad0bee80a536c7e47f54cf43174175834f30a0.tar.gz
Fail the CI if an optional module fails to compile (GH-27466)
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/setup.py b/setup.py
index 78eb68b849..59b2548810 100644
--- a/setup.py
+++ b/setup.py
@@ -571,6 +571,9 @@ class PyBuildExt(build_ext):
print("Custom linker flags may require --with-openssl-rpath=auto")
print()
+ if os.environ.get("PYTHONSTRICTEXTENSIONBUILD") and (self.failed or self.failed_on_import):
+ raise RuntimeError("Failed to build some stdlib modules")
+
def build_extension(self, ext):
if ext.name == '_ctypes':