From c02530759d8dffb01ac778ffb257da81ff8b3295 Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 10 Feb 2026 19:32:02 +0100 Subject: [PATCH] feat: show supported versions for setup.sh script as proposed in #12812 --- setup.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/setup.sh b/setup.sh index a2b8f612b..f4b9e0946 100755 --- a/setup.sh +++ b/setup.sh @@ -7,6 +7,9 @@ function echo_block() { echo "----------------------------" } UV=false +# Supported Python minor versions (order matters for detection) +SUPPORTED_MINOR_VERS=(13 12 11) +SUPPORTED_PY_VERSIONS="3.11, 3.12 and 3.13" function check_installed_pip() { ${PYTHON} -m pip > /dev/null @@ -33,7 +36,7 @@ function check_installed_python() { return fi - for v in 13 12 11 + for v in "${SUPPORTED_MINOR_VERS[@]}" do PYTHON="python3.${v}" which $PYTHON @@ -45,7 +48,7 @@ function check_installed_python() { fi done - echo "No usable python found. Please make sure to have python3.11 or newer installed." + echo "No usable python found. Supported versions are: ${SUPPORTED_PY_VERSIONS}. Please install one of these." exit 1 }