Skip to content

Commit

Permalink
pythonGH-126920: fix sysconfig.get_config_vars getting overwriten fro…
Browse files Browse the repository at this point in the history
…m the Makefile

Signed-off-by: Filipe Laíns <lains@riseup.net>
  • Loading branch information
FFY00 committed Nov 17, 2024
1 parent acbd5c9 commit 316c777
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Lib/sysconfig/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,8 @@ def _init_posix(vars):
else:
_temp = __import__(name, globals(), locals(), ['build_time_vars'], 0)
build_time_vars = _temp.build_time_vars
vars.update(build_time_vars)
# GH-126920: Make sure we don't overwrite any of the keys already set
vars.update(build_time_vars | vars)

def _init_non_posix(vars):
"""Initialize the module as appropriate for NT"""
Expand Down

0 comments on commit 316c777

Please sign in to comment.