]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
GH-145273: drop build_prefix check from missing stdlib warning (#145437)
authorFilipe Laíns <lains@riseup.net>
Mon, 2 Mar 2026 20:23:22 +0000 (20:23 +0000)
committerGitHub <noreply@github.com>
Mon, 2 Mar 2026 20:23:22 +0000 (20:23 +0000)
Makefile.pre.in
Modules/getpath.py

index da8d5483fd32e8aece38188687b1ce13434f0d1a..120a6add38507fe79f492c10278e399d2fc46f54 100644 (file)
@@ -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 ; \
index e06297b7b63a7b30da1f9ad3701c8ddf7d52e074..20e050787700bf832761c66c04ee28a45da9938e 100644 (file)
@@ -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)