Files
agnos-builder/userspace/openpilot_python_dependencies.sh
T
pantew869 6e94867233 Switch from poetry to uv (#238)
* switch to uv from poetry

* delete poetry.lock

* add uv.lock, required-python, and switch to hatch as in openpilot

* add uv.lock, required-python, and switch to hatch as in openpilot

* update pyproject.toml and copy uv.lock to the docker image

* return opencl

* update uv.lock

* fix precommit

* use two spaces
2024-07-14 07:29:18 -07:00

22 lines
521 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 uv