diff options
author | Filipe Laíns 🇵🇸 <lains@riseup.net> | 2024-11-17 01:56:01 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-17 01:56:01 (GMT) |
commit | 9d6366b60d01305fc5e45100e0cd13e358aa397d (patch) | |
tree | 5da75b08ee041dfd662ab270196f39aa50f53ef3 /Lib/sysconfig | |
parent | acbd5c9c6c62dac34d2ed1a789d36fe61841c16d (diff) | |
download | cpython-9d6366b60d01305fc5e45100e0cd13e358aa397d.zip cpython-9d6366b60d01305fc5e45100e0cd13e358aa397d.tar.gz cpython-9d6366b60d01305fc5e45100e0cd13e358aa397d.tar.bz2 |
GH-126920: fix Makefile overwriting sysconfig.get_config_vars
Diffstat (limited to 'Lib/sysconfig')
-rw-r--r-- | Lib/sysconfig/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/sysconfig/__init__.py b/Lib/sysconfig/__init__.py index ec3b638..67a0719 100644 --- a/Lib/sysconfig/__init__.py +++ b/Lib/sysconfig/__init__.py @@ -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""" |