Skip to content

Commit f7a1d7d

Browse files
[3.11] gh-103053: Fix make check-clean-src: check "python" program (GH-110449) (#110454)
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 67129c3 commit f7a1d7d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Makefile.pre.in

+2-1
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,8 @@ build_wasm: check-clean-src $(BUILDPYTHON) platform oldsharedmods python-config
592592
# Check that the source is clean when building out of source.
593593
check-clean-src:
594594
@if test -n "$(VPATH)" -a \( \
595-
-f "$(srcdir)/Programs/python.o" \
595+
-f "$(srcdir)/$(BUILDPYTHON)" \
596+
-o -f "$(srcdir)/Programs/python.o" \
596597
-o -f "$(srcdir)\Python/frozen_modules/importlib._bootstrap.h" \
597598
\); then \
598599
echo "Error: The source directory ($(srcdir)) is not clean" ; \
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)