configure: HDS now needs Python 3.10+.

3.9 is end-of-life as of 2025/10 anyway.
This commit is contained in:
Augustin Cavalier
2026-04-07 13:51:33 -04:00
parent 010569f639
commit bc501624e2
Vendored
+3 -3
View File
@@ -901,12 +901,12 @@ if [ -z "$HOST_PYTHON" ]; then
fi
# check is python is new enough
# usage of python by HDS requires at least 3.9
# usage of python by HDS requires at least 3.10
PYTHON_VERSION=$("$HOST_PYTHON" --version 2>&1 | sed -e 's/Python //')
case $PYTHON_VERSION in
2.* | 3.[1-8].*)
echo "Python $PYTHON_VERSION is too old; need at least Python 3.9."
2.* | 3.[1-9].*)
echo "Python $PYTHON_VERSION is too old; need at least Python 3.10."
echo "(maybe specify a newer one in HOST_PYTHON?)"
exit 1
;;