File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1414 if [[ -z ${CONDA_DEFAULT_ENV:- } ]] || [[ ${CONDA_DEFAULT_ENV:- } == " base" ]] || [[ ! -x " $( command -v python) " ]];
1515 then
1616 PYTHON_EXECUTABLE=python3
17+ else
18+ PYTHON_EXECUTABLE=python
1719 fi
1820fi
1921echo " Using python executable: $PYTHON_EXECUTABLE "
2022
2123PYTHON_SYS_VERSION=" $( $PYTHON_EXECUTABLE -c " import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}')" ) "
22- # Check python version. Expect 3.10.x or 3.11 .x
24+ # Check python version. Expect at least 3.10 .x
2325if ! $PYTHON_EXECUTABLE -c "
2426import sys
25- if sys.version_info < (3, 10) or sys.version_info >= (3, 12) :
27+ if sys.version_info < (3, 10):
2628 sys.exit(1)
2729" ;
2830then
29- echo " Python version must be 3.10.x or 3.11 .x. Detected version: $PYTHON_SYS_VERSION "
31+ echo " Python version must be at least 3.10 .x. Detected version: $PYTHON_SYS_VERSION "
3032 exit 1
3133fi
3234
You can’t perform that action at this time.
0 commit comments