diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-06-20 18:37:27 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-20 18:37:27 (GMT) |
commit | b8fe3bd1d4be5b7d8e9e20b3c36277117e8f6102 (patch) | |
tree | ed83e8794d0c90b59462e926fa0ffd6c50ee642d /Modules/getpath.py | |
parent | 26329e49caaeca1d934016b581aebf25db647a6f (diff) | |
download | cpython-b8fe3bd1d4be5b7d8e9e20b3c36277117e8f6102.zip cpython-b8fe3bd1d4be5b7d8e9e20b3c36277117e8f6102.tar.gz cpython-b8fe3bd1d4be5b7d8e9e20b3c36277117e8f6102.tar.bz2 |
gh-91985: Ensure in-tree builds override platstdlib_dir in every path calculation (GH-93641)
(cherry picked from commit 38af903506e9b18c6350c1dadcb489f057713f36)
Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
Diffstat (limited to 'Modules/getpath.py')
-rw-r--r-- | Modules/getpath.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/getpath.py b/Modules/getpath.py index 47f075c..dceeed7 100644 --- a/Modules/getpath.py +++ b/Modules/getpath.py @@ -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: |