mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
[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:
parent
bc8d81a8fe
commit
4ec146cefd
4 changed files with 82 additions and 82 deletions
4
setup.py
4
setup.py
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue