mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
gh-91985: Ensure in-tree builds override platstdlib_dir in every path calculation (GH-93641)
This commit is contained in:
parent
f8e576be0a
commit
38af903506
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