Skip to content

Commit a155f9f

Browse files
authored
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.
1 parent e0c4437 commit a155f9f

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
@@ -624,7 +624,8 @@ build_wasm: check-clean-src $(BUILDPYTHON) platform sharedmods \
624624
.PHONY: check-clean-src
625625
check-clean-src:
626626
@if test -n "$(VPATH)" -a \( \
627-
-f "$(srcdir)/Programs/python.o" \
627+
-f "$(srcdir)/$(BUILDPYTHON)" \
628+
-o -f "$(srcdir)/Programs/python.o" \
628629
-o -f "$(srcdir)\Python/frozen_modules/importlib._bootstrap.h" \
629630
\); then \
630631
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)