@@ -540,17 +540,17 @@ if test -n "$linux_arch" && ! test -d "$source_path/linux-headers/asm-$linux_arc
540
540
fi
541
541
542
542
check_py_version () {
543
- # We require python >= 3.9 .
543
+ # We require python >= 3.8 .
544
544
# NB: a True python conditional creates a non-zero return code (Failure)
545
- " $1 " -c ' import sys; sys.exit(sys.version_info < (3,9 ))'
545
+ " $1 " -c ' import sys; sys.exit(sys.version_info < (3,8 ))'
546
546
}
547
547
548
548
first_python=
549
549
if test -z " ${PYTHON} " ; then
550
550
# A bare 'python' is traditionally python 2.x, but some distros
551
551
# have it as python 3.x, so check in both places.
552
- for binary in python3 python python3.13 python3. 12 python3.11 \
553
- python3.10 python3.9 ; do
552
+ for binary in python3 python python3.12 python3.11 \
553
+ python3.10 python3.9 python3.8 ; do
554
554
if has " $binary " ; then
555
555
python=$( command -v " $binary " )
556
556
if check_py_version " $python " ; then
@@ -933,19 +933,19 @@ then
933
933
# If first_python is set, there was a binary somewhere even though
934
934
# it was not suitable. Use it for the error message.
935
935
if test -n " $first_python " ; then
936
- error_exit " Cannot use '$first_python ', Python >= 3.9 is required." \
936
+ error_exit " Cannot use '$first_python ', Python >= 3.8 is required." \
937
937
" Use --python=/path/to/python to specify a supported Python."
938
938
else
939
939
error_exit " Python not found. Use --python=/path/to/python"
940
940
fi
941
941
fi
942
942
943
943
if ! check_py_version " $python " ; then
944
- error_exit " Cannot use '$python ', Python >= 3.9 is required." \
944
+ error_exit " Cannot use '$python ', Python >= 3.8 is required." \
945
945
" Use --python=/path/to/python to specify a supported Python." \
946
946
" Maybe try:" \
947
947
" openSUSE Leap 15.3+: zypper install python39" \
948
- " CentOS: dnf install python3.12 "
948
+ " CentOS 8 : dnf install python38 "
949
949
fi
950
950
951
951
# Resolve PATH
0 commit comments