mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
[3.9] Fail the CI if an optional module fails to compile (GH-27466). (GH-27482)
(cherry picked from commit 7cad0bee80
)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
This commit is contained in:
parent
168879e366
commit
3a806b1f05
3 changed files with 7 additions and 0 deletions
3
setup.py
3
setup.py
|
@ -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':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue