diff --git a/.python-version b/.python-version index 678fd88..2009c7d 100644 --- a/.python-version +++ b/.python-version @@ -1 +1 @@ -3.5.3 \ No newline at end of file +3.9.2 diff --git a/README.md b/README.md index ad467b5..26ba6b6 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ Be lazier today! ## Local setup 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 diff --git a/first-setup.sh b/first-setup.sh index dbb4155..68eb601 100755 --- a/first-setup.sh +++ b/first-setup.sh @@ -10,8 +10,9 @@ B="\n${bold}" E="${normal}" if [ ! -d "venv" ]; then - echo -e "${B} No venv found, creating a new one ${E}" - python3 -m venv venv + PYTHON_VERSION=$(cat .python-version) + echo -e "${B} No venv found, creating a new one with version ${PYTHON_VERSION} ${E}" + python3 -m virtualenv -p $PYTHON_VERSION venv fi source venv/bin/activate