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