Skip to content

Commit d82377b

Browse files
authored
Correct handling of sysconfig._BASE_PREFIX in cross environments. (#298)
Ensure that sysconfig._BASE_PREFIX is bound to base_prefix, not prefix.
1 parent 5aec14b commit d82377b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

patch/Python/_cross_target.py.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ sysconfig.get_platform = cross_get_platform
7070
sysconfig._get_sysconfigdata_name = cross_get_sysconfigdata_name
7171

7272
# Ensure module-level values cached at time of import are updated.
73-
sysconfig._BASE_PREFIX = sys.prefix
73+
sysconfig._BASE_PREFIX = sys.base_prefix
7474
sysconfig._BASE_EXEC_PREFIX = sys.base_exec_prefix
7575

7676
# Force sysconfig data to be loaded (and cached).

0 commit comments

Comments
 (0)