diff options
author | Victor Stinner <vstinner@python.org> | 2023-10-06 00:46:52 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-06 00:46:52 (GMT) |
commit | a155f9f3427578ca5706d27e20bd0576f0395073 (patch) | |
tree | a710331f95bda8b898d8451b456b5c1cea84527d | |
parent | e0c44377935de3491b2cbe1e5f87f8b336fdc922 (diff) | |
download | cpython-a155f9f3427578ca5706d27e20bd0576f0395073.zip cpython-a155f9f3427578ca5706d27e20bd0576f0395073.tar.gz cpython-a155f9f3427578ca5706d27e20bd0576f0395073.tar.bz2 |
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.
-rw-r--r-- | Makefile.pre.in | 3 | ||||
-rw-r--r-- | Misc/NEWS.d/next/Build/2023-10-06-02-15-23.gh-issue-103053.--7JUF.rst | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in index f1f5c85..40951a8 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 0000000..81aa213 --- /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. |