https://github.com/python/cpython/commit/229447af5854d1fb70d1481567607083e9c21dfa
commit: 229447af5854d1fb70d1481567607083e9c21dfa
branch: 3.14
author: Miss Islington (bot) <[email protected]>
committer: gpshead <[email protected]>
date: 2026-05-24T08:47:44-07:00
summary:

[3.14] gh-110704: Recommend `distclean` target over `clean` when source tree is 
not clean (GH-112610) (#150343)

gh-110704: Recommend `distclean` target over `clean` when source tree is not 
clean (GH-112610)

Recommend `distclean` target over `clean` when source tree is not clean
(cherry picked from commit 34631058f2aec6752ebfc50d40958b247532f536)

Co-authored-by: James <[email protected]>
Co-authored-by: Gregory P. Smith <[email protected]>

files:
M Makefile.pre.in

diff --git a/Makefile.pre.in b/Makefile.pre.in
index da6d7c33156abf..ce320042bbf043 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -820,7 +820,7 @@ check-clean-src:
                echo "Building Python out of the source tree (in 
$(abs_builddir)) requires a clean source tree ($(abs_srcdir))" ; \
                echo "Build artifacts such as .o files, executables, and 
Python/frozen_modules/*.h must not exist within $(srcdir)." ; \
                echo "Try to run:" ; \
-               echo "  (cd \"$(srcdir)\" && make clean || git clean -fdx -e 
Doc/venv)" ; \
+               echo "  (cd \"$(srcdir)\" && make distclean || git clean -fdx 
-e Doc/venv)" ; \
                exit 1; \
        fi
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to