Skip to content

Commit

Permalink
Use python LTS.
Browse files Browse the repository at this point in the history
  • Loading branch information
rickypc committed Mar 3, 2024
1 parent 1ed5fca commit 770608b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bin/get-virtualenv
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ if [ ! -f $LOCAL_BIN/virtualenv3 ]; then
fi

if [ ! -d $VENVS/default ]; then
VERSION=$($LOCAL_BIN/python3 -c 'import sys;print(str(sys.version_info[0])+"."+str(sys.version_info[1]))')
rm -rf $VENVS/default
mkdir -p $VENVS
$LOCAL_BIN/virtualenv3 -q $VENVS/$VERSION
mv $VENVS/$VERSION $VENVS/default
$LOCAL_BIN/virtualenv3 -q $VENVS/$PYTHON_LTS
mv $VENVS/$PYTHON_LTS $VENVS/default
fi

0 comments on commit 770608b

Please sign in to comment.