Files
StarPilot/opendbc_repo/setup.sh
T
firestar5683 22a8575199 Vendor dependencies and resources for standalone builds
Keep official openpilot ancestry and dependency licenses. Store resources directly in Git, remove LFS setup requirements, and leave the downloadable big model outside the source tree.
2026-10-03 21:01:18 +00:00

23 lines
582 B
Bash
Executable File

#!/bin/bash
set -e
BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
# TODO: why doesn't uv do this?
export PYTHONPATH=$BASEDIR
# *** dependencies install ***
if ! command -v uv &>/dev/null; then
echo "'uv' is not installed. Installing 'uv'..."
curl -LsSf https://astral.sh/uv/install.sh | sh
# must source this after install on some platforms
if [ -f $HOME/.local/bin/env ]; then
source $HOME/.local/bin/env
fi
fi
export UV_PROJECT_ENVIRONMENT="$BASEDIR/.venv"
uv sync --all-extras --all-groups --inexact
source "$PYTHONPATH/.venv/bin/activate"