Skip to content

Commit 539a985

Browse files
authored
GH-145273: drop build_prefix check from missing stdlib warning (#145437)
1 parent f8d2f9f commit 539a985

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Makefile.pre.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,7 @@ platform: $(PYTHON_FOR_BUILD_DEPS) pybuilddir.txt
10041004
# or removed in case of failure.
10051005
pybuilddir.txt: $(PYTHON_FOR_BUILD_DEPS)
10061006
@echo "none" > ./pybuilddir.txt
1007-
$(RUNSHARED) $(PYTHON_FOR_BUILD) -S -m sysconfig --generate-posix-vars ;\
1007+
$(RUNSHARED) $(PYTHON_FOR_BUILD) -S -X pathconfig_warnings=0 -m sysconfig --generate-posix-vars ;\
10081008
if test $$? -ne 0 ; then \
10091009
echo "generate-posix-vars failed" ; \
10101010
rm -f ./pybuilddir.txt ; \

Modules/getpath.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ def search_up(prefix, *landmarks, test=isfile):
779779
if not stdlib_dir or not isdir(stdlib_dir):
780780
hint = home_hint if home else f'sys.prefix is set to {prefix}, is this correct?'
781781
warn('WARN: Could not find the standard library directory! ' + hint)
782-
elif (not platstdlib_dir and not build_prefix) or not isdir(platstdlib_dir):
782+
elif not platstdlib_dir or not isdir(platstdlib_dir):
783783
hint = home_hint if home else f'sys.exec_prefix is set to {exec_prefix}, is this correct?'
784784
warn('WARN: Could not find the platform standard library directory! ' + hint)
785785

0 commit comments

Comments
 (0)