From 02827e0b4ed8f07b396b0776f98f181d8f5eefe0 Mon Sep 17 00:00:00 2001 From: Andrei Radulescu Date: Tue, 6 May 2025 19:23:28 +0300 Subject: [PATCH] sync_openpilot_dependencies.sh improvements (#471) * use python3 in sync_openpilot_dependencies.sh * sync_openpilot_dependencies.sh install uv if it's not installed --- sync_openpilot_dependencies.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sync_openpilot_dependencies.sh b/sync_openpilot_dependencies.sh index 46d8f2b..b68cac8 100755 --- a/sync_openpilot_dependencies.sh +++ b/sync_openpilot_dependencies.sh @@ -5,11 +5,16 @@ set -e DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)" cd $DIR +if ! command -v "uv" > /dev/null 2>&1; then + echo "installing uv..." + curl -LsSf https://astral.sh/uv/install.sh | sh +fi + cd userspace/uv curl -sSo openpilot/pyproject.toml https://raw.githubusercontent.com/commaai/openpilot/master/pyproject.toml export PYOPENCL_CL_PRETEND_VERSION="2.0" && \ -pc="$(python -c "import sysconfig;print(sysconfig.get_config_vars('installed_base')[0])")" && \ +pc="$(python3 -c "import sysconfig;print(sysconfig.get_config_vars('installed_base')[0])")" && \ pcpath=$pc"/lib/pkgconfig" && \ export PKG_CONFIG_PATH="$pcpath:$PKG_CONFIG_PATH" && \ uv lock --upgrade