From d7c6c7245a55ca13cc990227d6ed88615798050c Mon Sep 17 00:00:00 2001 From: William Woodruff Date: Wed, 3 Jul 2024 12:48:50 -0400 Subject: [PATCH] setup: minimum Python is 3.8 This has been true for a while. Signed-off-by: William Woodruff --- setup/setup.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/setup.bash b/setup/setup.bash index a7a6310..62ece86 100644 --- a/setup/setup.bash +++ b/setup/setup.bash @@ -35,7 +35,7 @@ if [[ "${0}" == "${BASH_SOURCE[0]}" ]]; then die "Internal error: setup harness was executed instead of being sourced?" fi -# Check the Python version, making sure it's new enough (3.7+) +# Check the Python version, making sure it's new enough (3.8+) # The installation step immediately below will technically catch this, # but doing it explicitly gives us the opportunity to produce a better # error message. @@ -43,7 +43,7 @@ vers=$(python -V | cut -d ' ' -f2) maj_vers=$(cut -d '.' -f1 <<< "${vers}") min_vers=$(cut -d '.' -f2 <<< "${vers}") -[[ "${maj_vers}" == "3" && "${min_vers}" -ge 7 ]] || die "Bad Python version: ${vers}" +[[ "${maj_vers}" == "3" && "${min_vers}" -ge 8 ]] || die "Bad Python version: ${vers}" # If the user didn't explicitly configure a Python version with # `actions/setup-python`, then we might be using the distribution's Python and