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 14
14
if [[ -z ${CONDA_DEFAULT_ENV:- } ]] || [[ ${CONDA_DEFAULT_ENV:- } == " base" ]] || [[ ! -x " $( command -v python) " ]];
15
15
then
16
16
PYTHON_EXECUTABLE=python3
17
+ else
18
+ PYTHON_EXECUTABLE=python
17
19
fi
18
20
fi
19
21
echo " Using python executable: $PYTHON_EXECUTABLE "
20
22
21
23
PYTHON_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
23
25
if ! $PYTHON_EXECUTABLE -c "
24
26
import sys
25
- if sys.version_info < (3, 10) or sys.version_info >= (3, 12) :
27
+ if sys.version_info < (3, 10):
26
28
sys.exit(1)
27
29
" ;
28
30
then
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 "
30
32
exit 1
31
33
fi
32
34
You can’t perform that action at this time.
0 commit comments