gh-91985: Ensure in-tree builds override platstdlib_dir in every path calculation (GH-93641)

This commit is contained in:
neonene 2022-06-17 06:41:57 +09:00 committed by GitHub
parent f8e576be0a
commit 38af903506
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: