Merge pull request #180 from ZeusWPI/python-versions

Fix python version in first-setup script
This commit is contained in:
Maxime 2022-04-19 20:19:48 +02:00 committed by GitHub
commit 70491f3e5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

View file

@ -1 +1 @@
3.5.3 3.9.2

View file

@ -14,6 +14,7 @@ Be lazier today!
## Local setup ## Local setup
There is a special script to get started with the project. Just run it in the root of the project. There is a special script to get started with the project. Just run it in the root of the project.
Note: this script might require you to install a certain python version, you can do this using your favorite tool e.g. [pyenv](https://github.com/pyenv/pyenv#simple-python-version-management-pyenv)
./first-setup.sh ./first-setup.sh

View file

@ -10,8 +10,9 @@ B="\n${bold}"
E="${normal}" E="${normal}"
if [ ! -d "venv" ]; then if [ ! -d "venv" ]; then
echo -e "${B} No venv found, creating a new one ${E}" PYTHON_VERSION=$(cat .python-version)
python3 -m venv venv echo -e "${B} No venv found, creating a new one with version ${PYTHON_VERSION} ${E}"
python3 -m virtualenv -p $PYTHON_VERSION venv
fi fi
source venv/bin/activate source venv/bin/activate