tools/setup: do not change global state (#22735)

* tools/setup: do not change global state

1. download packages in the venv
2. never change global python version

* update_requirements.sh: install to system if used by comma employees

* bump pip & pipenv versions

* no --upgrade

* run pre-commmit install in venv

* for consistency

Co-authored-by: predicate@bonzo <noreply@example.com>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 1d55f2f23e31dd64568d729ef33325cf229fdf51
This commit is contained in:
lipniak
2021-10-31 15:37:07 +00:00
committed by GitHub
parent 073dbd8d60
commit 9fcb713e9c
3 changed files with 19 additions and 14 deletions
+2 -3
View File
@@ -62,14 +62,13 @@ fi
# install python
PYENV_PYTHON_VERSION=$(cat $OP_ROOT/.python-version)
pyenv install -s ${PYENV_PYTHON_VERSION}
pyenv global ${PYENV_PYTHON_VERSION}
pyenv rehash
eval "$(pyenv init -)"
pip install pipenv==2020.8.13
pipenv install --system --deploy
pipenv install --dev --deploy
echo
echo "---- FINISH OPENPILOT SETUP ----"
echo "Configure your active shell env by running:"
echo "source $RC_FILE"
echo "source $RC_FILE"