Skip to content

Commit add35e8

Browse files
Jack-Khuuvmpuri
authored andcommitted
Minor typo + Update install_requirements.sh to support python 3.10 >= (#1368)
* Update install_requirements.sh to support python 3.10 >= , <3.13 * Update install_requirements.sh * Update install_requirements.sh
1 parent 483928b commit add35e8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

install/install_requirements.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,21 @@ then
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
1820
fi
1921
echo "Using python executable: $PYTHON_EXECUTABLE"
2022

2123
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
2325
if ! $PYTHON_EXECUTABLE -c "
2426
import 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
";
2830
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"
3032
exit 1
3133
fi
3234

0 commit comments

Comments
 (0)