bpo-45847: Don't override user overrides for CFLAGS/LIBS (GH-29967)

This commit is contained in:
Christian Heimes 2021-12-08 12:52:08 +02:00 committed by GitHub
parent c602c1be43
commit 0461c68cdf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 85 additions and 67 deletions

View file

@ -665,7 +665,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):
if os.environ.get("PYTHONSTRICTEXTENSIONBUILD") and (
self.failed or self.failed_on_import or self.missing
):
raise RuntimeError("Failed to build some stdlib modules")
def build_extension(self, ext):