]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-127146: Fix test_sysconfigdata_json for Emscripten (#128556)
authorHood Chatham <roberthoodchatham@gmail.com>
Mon, 6 Jan 2025 19:45:14 +0000 (20:45 +0100)
committerGitHub <noreply@github.com>
Mon, 6 Jan 2025 19:45:14 +0000 (19:45 +0000)
Lib/sysconfig/__init__.py

index ed7b6a335d01d411e2f7a9d382f5ec175da78ae1..20d506bcd45abc3d7e96f47c84c8cce84232f6c9 100644 (file)
@@ -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;