mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-91985: Ensure in-tree builds override platstdlib_dir in every path calculation (GH-93641)
(cherry picked from commit 38af903506
)
Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
This commit is contained in:
parent
26329e49ca
commit
b8fe3bd1d4
4 changed files with 125 additions and 2 deletions
|
@ -461,7 +461,8 @@ if not py_setpath and not home_was_set:
|
|||
|
||||
build_prefix = None
|
||||
|
||||
if not home_was_set and real_executable_dir and not py_setpath:
|
||||
if ((not home_was_set and real_executable_dir and not py_setpath)
|
||||
or config.get('_is_python_build', 0) > 0):
|
||||
# Detect a build marker and use it to infer prefix, exec_prefix,
|
||||
# stdlib_dir and the platstdlib_dir directories.
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue