Skip to content

Commit

Permalink
update to python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
adeebshihadeh committed May 25, 2024
1 parent 53a681a commit e23a70b
Show file tree
Hide file tree
Showing 4 changed files with 1,210 additions and 1,117 deletions.
2 changes: 1 addition & 1 deletion userspace/files/profile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export QT_QPA_PLATFORM="wayland-egl"
# python setup
export PYTHONPATH="/data/pythonpath"
export PATH="/usr/local/pyenv/bin:$PATH"
export PYENV_VERSION="3.11.4"
export PYENV_VERSION="3.12.3"
export PYENV_ROOT="/usr/local/pyenv"

# output of "pyenv init - --no-rehash"
Expand Down
6 changes: 3 additions & 3 deletions userspace/openpilot_python_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ curl https://pyenv.run | bash
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"

PYTHON_VERSION="3.11.4"
PYTHON_VERSION="3.12.3"
if [ "$(uname -p)" == "aarch64" ]; then
pyenv install --verbose $PYTHON_VERSION
else
MAKEFLAGS="-j1" MAKE_OPTS="-j1" taskset --cpu-list 0 pyenv install --verbose $PYTHON_VERSION
MAKEFLAGS="-j16" MAKE_OPTS="-j16" pyenv install --verbose $PYTHON_VERSION
fi

echo "Setting global python version"
pyenv global $PYTHON_VERSION

pip3 install --no-cache-dir --upgrade pip==22.3.1 poetry==1.2.2
pip3 install --no-cache-dir --upgrade pip poetry
Loading

0 comments on commit e23a70b

Please sign in to comment.