diff options
author | Christian Heimes <christian@python.org> | 2022-06-27 05:52:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-27 05:52:06 (GMT) |
commit | 71868a0066a90519ccc6aeb75673ae882aaa03f0 (patch) | |
tree | 38feb32fba4753596c8adab08bc20aedbc1f1d7c /setup.py | |
parent | d71f5adc41569c2d626552269797e0545fc9122c (diff) | |
download | cpython-71868a0066a90519ccc6aeb75673ae882aaa03f0.zip cpython-71868a0066a90519ccc6aeb75673ae882aaa03f0.tar.gz cpython-71868a0066a90519ccc6aeb75673ae882aaa03f0.tar.bz2 |
gh-90005: Rename MODULE_EGG variable to MODULE_EGG_STATE (GH-94301)
It makes it easier to look for module states in sysconfig without
special casing suffixes "_CFLAGS", "_DEPS", "_LDFLAGS", "_OBJS",
and "CTYPES_MALLOC_CLOSURE".
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |