[3.11] gh-90005: Rename MODULE_EGG variable to MODULE_EGG_STATE (GH-94301) (GH-94317)

Co-authored-by: Christian Heimes <christian@python.org>
This commit is contained in:
Christian Heimes 2022-06-27 09:23:04 +02:00 committed by GitHub
parent bc8d81a8fe
commit 4ec146cefd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 82 additions and 82 deletions

View file

@ -318,7 +318,7 @@ class PyBuildExt(build_ext):
if update_flags:
self.update_extension_flags(ext)
state = sysconfig.get_config_var(f"MODULE_{ext.name.upper()}")
state = sysconfig.get_config_var(f"MODULE_{ext.name.upper()}_STATE")
if state == "yes":
self.extensions.append(ext)
elif state == "disabled":
@ -329,7 +329,7 @@ class PyBuildExt(build_ext):
# not available on current platform
pass
else:
# not migrated to MODULE_{name} yet.
# not migrated to MODULE_{name}_STATE yet.
self.announce(
f'WARNING: Makefile is missing module variable for "{ext.name}"',
level=2