GH-126920: fix Makefile overwriting sysconfig.get_config_vars

This commit is contained in:
Filipe Laíns 🇵🇸 2024-11-17 01:56:01 +00:00 committed by GitHub
parent acbd5c9c6c
commit 9d6366b60d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 39 additions and 1 deletions

View file

@ -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"""