Files
agnos-builder/userspace/openpilot_python_dependencies.sh
Adeeb Shihadeh ebc6887ddc revert python3.12 (#234)
* Revert "remove pprofile for now"

This reverts commit 78a2f3e778.

* Revert "update to python 3.12 (#224)"

This reverts commit 1370af97d8.

* unpin
2024-07-05 15:01:07 -07:00

22 lines
525 B
Bash
Executable File

#!/bin/bash -e
echo "Installing python for openpilot"
# Install pyenv
export PYENV_ROOT="/usr/local/pyenv"
curl https://pyenv.run | bash
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
PYTHON_VERSION="3.11.4"
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
fi
echo "Setting global python version"
pyenv global $PYTHON_VERSION
pip3 install --no-cache-dir --upgrade pip poetry