From ce491008e72778104c231449fea1d7aed24d613b Mon Sep 17 00:00:00 2001 From: exurd <7785022+exurd@users.noreply.github.com> Date: Wed, 1 Apr 2026 19:32:48 +0100 Subject: [PATCH] python-build: advise user with no c compiler (#3294) this checks if "no acceptable C compiler found" is in the last 10 lines of the log, and asks if the user has correctly installed the build dependencies. --- plugins/python-build/bin/python-build | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/plugins/python-build/bin/python-build b/plugins/python-build/bin/python-build index 36b6f2e2..4d9b054e 100755 --- a/plugins/python-build/bin/python-build +++ b/plugins/python-build/bin/python-build @@ -202,7 +202,14 @@ build_failed() { colorize 33 "Results logged to ${LOG_PATH}" printf "\n\n" echo "Last 10 log lines:" - tail -n 10 "$LOG_PATH" + TAIL=`tail -n 10 "$LOG_PATH"` + echo "$TAIL" + if echo "$TAIL" | grep -q "no acceptable C compiler found"; then + printf "\n" + echo "Are the build dependencies for Python correctly installed?" + echo "Please consult to the Wiki page for more info." + echo "https://github.com/pyenv/pyenv/wiki#suggested-build-environment" + fi fi } >&3 exit 1