Skip to content

Commit c88706b

Browse files
committed
pythonGH-126920: fix Makefile overwriting sysconfig.get_config_vars
Signed-off-by: Filipe Laíns <[email protected]>
1 parent acbd5c9 commit c88706b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/sysconfig/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,8 @@ def _init_posix(vars):
353353
else:
354354
_temp = __import__(name, globals(), locals(), ['build_time_vars'], 0)
355355
build_time_vars = _temp.build_time_vars
356-
vars.update(build_time_vars)
356+
# GH-126920: Make sure we don't overwrite any of the keys already set
357+
vars.update(build_time_vars | vars)
357358

358359
def _init_non_posix(vars):
359360
"""Initialize the module as appropriate for NT"""

0 commit comments

Comments
 (0)