Skip to content

Commit

Permalink
Added check for python version (#1570)
Browse files Browse the repository at this point in the history
* Added check for python version

* Update for PYTHON_VERSION_X_Y
  • Loading branch information
Ranvirsv authored Jun 22, 2023
1 parent 1a8e202 commit 18daec7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions setup_venv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ PYTHON_VERSION_X_Y=`${PYTHON} -c 'import sys; version=sys.version_info[:2]; prin
echo "Python: $PYTHON"
echo "Python version: $PYTHON_VERSION_X_Y"

if [ "$PYTHON_VERSION_X_Y" != "3.11" ]; then
echo "Error: Python version 3.11 is required."
exit 1
fi

if [[ "$SKIP_VENV" != "1" ]]; then
if [[ -z "${CONDA_PREFIX}" ]]; then
# Not a conda env. So create a new VENV dir
Expand Down

0 comments on commit 18daec7

Please sign in to comment.