diff options
author | Hood Chatham <roberthoodchatham@gmail.com> | 2025-01-06 19:45:14 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-06 19:45:14 (GMT) |
commit | b6c919b674549d519efbbc378588ca6d3efc7242 (patch) | |
tree | dfece75f3ca05a493c2776a66de4da6e68aa971d | |
parent | f826beca0cedb8e4b92896544c75fd0d9dcb0446 (diff) | |
download | cpython-b6c919b674549d519efbbc378588ca6d3efc7242.zip cpython-b6c919b674549d519efbbc378588ca6d3efc7242.tar.gz cpython-b6c919b674549d519efbbc378588ca6d3efc7242.tar.bz2 |
gh-127146: Fix test_sysconfigdata_json for Emscripten (#128556)
-rw-r--r-- | Lib/sysconfig/__init__.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/sysconfig/__init__.py b/Lib/sysconfig/__init__.py index ed7b6a3..20d506b 100644 --- a/Lib/sysconfig/__init__.py +++ b/Lib/sysconfig/__init__.py @@ -485,10 +485,10 @@ def _init_config_vars(): _init_posix(_CONFIG_VARS) # If we are cross-compiling, load the prefixes from the Makefile instead. if '_PYTHON_PROJECT_BASE' in os.environ: - prefix = _CONFIG_VARS['prefix'] - exec_prefix = _CONFIG_VARS['exec_prefix'] - base_prefix = _CONFIG_VARS['prefix'] - base_exec_prefix = _CONFIG_VARS['exec_prefix'] + prefix = _CONFIG_VARS['host_prefix'] + exec_prefix = _CONFIG_VARS['host_exec_prefix'] + base_prefix = _CONFIG_VARS['host_prefix'] + base_exec_prefix = _CONFIG_VARS['host_exec_prefix'] abiflags = _CONFIG_VARS['ABIFLAGS'] # Normalized versions of prefix and exec_prefix are handy to have; |