mirror of
https://github.com/commaai/agnos-builder.git
synced 2026-04-07 15:23:56 +08:00
* Revert "remove pprofile for now" This reverts commit78a2f3e778. * Revert "update to python 3.12 (#224)" This reverts commit1370af97d8. * unpin
22 lines
525 B
Bash
Executable File
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
|