Files
agnos-builder/userspace/openpilot_python_dependencies.sh
Mauricio Alvarez Leon 453fc50ba9 build_system: fix uv 5.1 error and 3.12 pkgconfig error (#403)
* build_system: fix uv 5.1 error and 3.12 pkgconfig error

* remove mention of uv_bin and .cargo

* Update userspace/openpilot_python_dependencies.sh

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2024-11-13 09:57:24 -08:00

13 lines
326 B
Bash
Executable File

#!/bin/bash -e
echo "installing uv..."
export XDG_DATA_HOME="/usr/local"
curl -LsSf https://astral.sh/uv/install.sh | sh
PYTHON_VERSION="3.12.3"
# uv requires virtual env either managed or system before installing dependencies
uv venv $XDG_DATA_HOME/venv --seed --python-preference only-managed --python=$PYTHON_VERSION