]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-103053: Fix make check-clean-src: check "python" program (GH-110449) (...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 6 Oct 2023 01:23:15 +0000 (18:23 -0700)
committerGitHub <noreply@github.com>
Fri, 6 Oct 2023 01:23:15 +0000 (01:23 +0000)
gh-103053: Fix make check-clean-src: check "python" program (GH-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.
(cherry picked from commit a155f9f3427578ca5706d27e20bd0576f0395073)

Co-authored-by: Victor Stinner <vstinner@python.org>
Makefile.pre.in
Misc/NEWS.d/next/Build/2023-10-06-02-15-23.gh-issue-103053.--7JUF.rst [new file with mode: 0644]

index d882c0cd6722406a2a53538cb031b5e632c1e7aa..f3c2d8bf260de2f8598bd6f8f7861421c160dfd3 100644 (file)
@@ -623,7 +623,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 (file)
index 0000000..81aa213
--- /dev/null
@@ -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.