From: Filipe LaĆ­ns Date: Mon, 2 Mar 2026 20:23:22 +0000 (+0000) Subject: GH-145273: drop build_prefix check from missing stdlib warning (#145437) X-Git-Tag: v3.15.0a7~98 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=539a985faca498e345e471476cb377c1c57ea07f;p=thirdparty%2FPython%2Fcpython.git GH-145273: drop build_prefix check from missing stdlib warning (#145437) --- diff --git a/Makefile.pre.in b/Makefile.pre.in index da8d5483fd32..120a6add3850 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -1004,7 +1004,7 @@ platform: $(PYTHON_FOR_BUILD_DEPS) pybuilddir.txt # or removed in case of failure. pybuilddir.txt: $(PYTHON_FOR_BUILD_DEPS) @echo "none" > ./pybuilddir.txt - $(RUNSHARED) $(PYTHON_FOR_BUILD) -S -m sysconfig --generate-posix-vars ;\ + $(RUNSHARED) $(PYTHON_FOR_BUILD) -S -X pathconfig_warnings=0 -m sysconfig --generate-posix-vars ;\ if test $$? -ne 0 ; then \ echo "generate-posix-vars failed" ; \ rm -f ./pybuilddir.txt ; \ diff --git a/Modules/getpath.py b/Modules/getpath.py index e06297b7b63a..20e050787700 100644 --- a/Modules/getpath.py +++ b/Modules/getpath.py @@ -779,7 +779,7 @@ if not stdlib_zip or not isfile(stdlib_zip): if not stdlib_dir or not isdir(stdlib_dir): hint = home_hint if home else f'sys.prefix is set to {prefix}, is this correct?' warn('WARN: Could not find the standard library directory! ' + hint) - elif (not platstdlib_dir and not build_prefix) or not isdir(platstdlib_dir): + elif not platstdlib_dir or not isdir(platstdlib_dir): hint = home_hint if home else f'sys.exec_prefix is set to {exec_prefix}, is this correct?' warn('WARN: Could not find the platform standard library directory! ' + hint)