diff --git a/tools/detect_python.fish b/tools/detect_python.fish index 8e9947f3a8a..63300df1022 100644 --- a/tools/detect_python.fish +++ b/tools/detect_python.fish @@ -3,11 +3,11 @@ # This is a port of detect_python.sh. More information are provided there. set OLDEST_PYTHON_SUPPORTED_MAJOR 3 -set OLDEST_PYTHON_SUPPORTED_MINOR 10 +set OLDEST_PYTHON_SUPPORTED_MINOR 11 set -x ESP_PYTHON python -for p_cmd in python3 python python3.10 python3.11 python3.12 python3.13; +for p_cmd in python3 python python3.11 python3.12 python3.13 python3.14; $p_cmd --version >/dev/null 2>&1; or continue echo "Checking \"$p_cmd\" ..." diff --git a/tools/detect_python.sh b/tools/detect_python.sh index 3f84a9b91ef..6018d25c435 100644 --- a/tools/detect_python.sh +++ b/tools/detect_python.sh @@ -8,11 +8,11 @@ # 3. If required version of python is not found, script will fail OLDEST_PYTHON_SUPPORTED_MAJOR=3 -OLDEST_PYTHON_SUPPORTED_MINOR=10 +OLDEST_PYTHON_SUPPORTED_MINOR=11 ESP_PYTHON=python -for p_cmd in python3 python python3.10 python3.11 python3.12 python3.13; do +for p_cmd in python3 python python3.11 python3.12 python3.13 python3.14; do $p_cmd --version >/dev/null 2>&1 || continue echo "Checking \"$p_cmd\" ..." diff --git a/tools/python_version_checker.py b/tools/python_version_checker.py index 3797637bb8a..d1fdf2621a8 100755 --- a/tools/python_version_checker.py +++ b/tools/python_version_checker.py @@ -8,12 +8,12 @@ # # There are related tools/detect_python.{sh,fish} scripts which are called earlier when the paths are not properly # set-up and they only intend to prefer the use of Python 3 over Python 2. Why not more? All possible executables -# (python3.10, python3.11, ...) cannot be hardcoded there and at the end, the user is responsible to set-up a system +# (python3.11, python3.12, ...) cannot be hardcoded there and at the end, the user is responsible to set-up a system # where "python" or "python3" of compatible version is available. import sys from collections.abc import Iterable -OLDEST_PYTHON_SUPPORTED = (3, 10) # keep it as tuple for comparison with sys.version_info +OLDEST_PYTHON_SUPPORTED = (3, 11) # keep it as tuple for comparison with sys.version_info def _ver_to_str(it: Iterable) -> str: