From 38af903506e9b18c6350c1dadcb489f057713f36 Mon Sep 17 00:00:00 2001 From: neonene <53406459+neonene@users.noreply.github.com> Date: Fri, 17 Jun 2022 06:41:57 +0900 Subject: gh-91985: Ensure in-tree builds override platstdlib_dir in every path calculation (GH-93641) --- Modules/getpath.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Modules/getpath.py') diff --git a/Modules/getpath.py b/Modules/getpath.py index 47f075caf55..dceeed7702c 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: -- cgit v1.2.3