mirror of
https://github.com/commaai/agnos-builder.git
synced 2026-07-21 14:52:06 +08:00
initial agnos-builder release
This commit is contained in:
Executable
+18
@@ -0,0 +1,18 @@
|
||||
#!/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 -)"
|
||||
|
||||
if [ "$(uname -p)" == "aarch64" ]; then
|
||||
pyenv install --verbose 3.8.5
|
||||
else
|
||||
MAKEFLAGS="-j1" MAKE_OPTS="-j1" taskset --cpu-list 0 pyenv install --verbose 3.8.5
|
||||
fi
|
||||
|
||||
echo "Setting global python version"
|
||||
pyenv global 3.8.5
|
||||
Reference in New Issue
Block a user