configure: HDS now needs Python 3.10+.
3.9 is end-of-life as of 2025/10 anyway.
This commit is contained in:
@@ -901,12 +901,12 @@ if [ -z "$HOST_PYTHON" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# check is python is new enough
|
# 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 //')
|
PYTHON_VERSION=$("$HOST_PYTHON" --version 2>&1 | sed -e 's/Python //')
|
||||||
|
|
||||||
case $PYTHON_VERSION in
|
case $PYTHON_VERSION in
|
||||||
2.* | 3.[1-8].*)
|
2.* | 3.[1-9].*)
|
||||||
echo "Python $PYTHON_VERSION is too old; need at least Python 3.9."
|
echo "Python $PYTHON_VERSION is too old; need at least Python 3.10."
|
||||||
echo "(maybe specify a newer one in HOST_PYTHON?)"
|
echo "(maybe specify a newer one in HOST_PYTHON?)"
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user