From: Victor Stinner Date: Fri, 6 Oct 2023 00:46:52 +0000 (+0200) Subject: gh-103053: Fix make check-clean-src: check "python" program (#110449) X-Git-Tag: v3.13.0a1~110 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a155f9f3427578ca5706d27e20bd0576f0395073;p=thirdparty%2FPython%2Fcpython.git gh-103053: Fix make check-clean-src: check "python" program (#110449) "make check-clean-src" now also checks if the "python" program is found in the source directory: fail with an error if it does exist. --- diff --git a/Makefile.pre.in b/Makefile.pre.in index f1f5c8557e7f..40951a8af7a6 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -624,7 +624,8 @@ build_wasm: check-clean-src $(BUILDPYTHON) platform sharedmods \ .PHONY: check-clean-src check-clean-src: @if test -n "$(VPATH)" -a \( \ - -f "$(srcdir)/Programs/python.o" \ + -f "$(srcdir)/$(BUILDPYTHON)" \ + -o -f "$(srcdir)/Programs/python.o" \ -o -f "$(srcdir)\Python/frozen_modules/importlib._bootstrap.h" \ \); then \ echo "Error: The source directory ($(srcdir)) is not clean" ; \ diff --git a/Misc/NEWS.d/next/Build/2023-10-06-02-15-23.gh-issue-103053.--7JUF.rst b/Misc/NEWS.d/next/Build/2023-10-06-02-15-23.gh-issue-103053.--7JUF.rst new file mode 100644 index 000000000000..81aa21357287 --- /dev/null +++ b/Misc/NEWS.d/next/Build/2023-10-06-02-15-23.gh-issue-103053.--7JUF.rst @@ -0,0 +1,3 @@ +"make check-clean-src" now also checks if the "python" program is found in +the source directory: fail with an error if it does exist. Patch by Victor +Stinner.