diff options
author | Pablo Galindo Salgado <Pablogsal@gmail.com> | 2021-07-30 14:51:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-30 14:51:13 (GMT) |
commit | 3a806b1f054d263740b487efdb3670019a322682 (patch) | |
tree | 56c0959ab3ff625ed5b20d39638305b05205cd30 /setup.py | |
parent | 168879e366ec56b20fe4792b5851e8de32aaee87 (diff) | |
download | cpython-3a806b1f054d263740b487efdb3670019a322682.zip cpython-3a806b1f054d263740b487efdb3670019a322682.tar.gz cpython-3a806b1f054d263740b487efdb3670019a322682.tar.bz2 |
[3.9] Fail the CI if an optional module fails to compile (GH-27466). (GH-27482)
(cherry picked from commit 7cad0bee80a536c7e47f54cf43174175834f30a0)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -540,6 +540,9 @@ class PyBuildExt(build_ext): "APIs, https://github.com/libressl-portable/portable/issues/381") 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': |