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:
Miss Islington (bot) 2022-06-20 11:37:27 -07:00 committed by GitHub
parent 26329e49ca
commit b8fe3bd1d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 125 additions and 2 deletions

View file

@ -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: