Skip to content

Commit 67028f0

Browse files
[3.12] gh-103053: Fix make check-clean-src: check "python" program (GH-110449) (#110453)
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 a155f9f) Co-authored-by: Victor Stinner <[email protected]>
1 parent 6af359b commit 67028f0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Makefile.pre.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,8 @@ build_wasm: check-clean-src $(BUILDPYTHON) platform sharedmods \
623623
.PHONY: check-clean-src
624624
check-clean-src:
625625
@if test -n "$(VPATH)" -a \( \
626-
-f "$(srcdir)/Programs/python.o" \
626+
-f "$(srcdir)/$(BUILDPYTHON)" \
627+
-o -f "$(srcdir)/Programs/python.o" \
627628
-o -f "$(srcdir)\Python/frozen_modules/importlib._bootstrap.h" \
628629
\); then \
629630
echo "Error: The source directory ($(srcdir)) is not clean" ; \
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
"make check-clean-src" now also checks if the "python" program is found in
2+
the source directory: fail with an error if it does exist. Patch by Victor
3+
Stinner.

0 commit comments

Comments
 (0)