Files
openpilot/panda/setup.sh
T
github-actions[bot] 067912aa6b sunnypilot v2026.003.000
version: sunnypilot v2026.003.000 (staging)
date: 2026-10-26T14:56:20
master commit: a06366ce9246962f313380e4ebe15955e720e7a5
2026-10-26 14:56:20 +00:00

20 lines
444 B
Bash
Executable File

#!/usr/bin/env bash
set -e
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
cd $DIR
if ! command -v uv &>/dev/null; then
echo "'uv' is not installed. Installing 'uv'..."
curl -LsSf https://astral.sh/uv/install.sh | sh
# doesn't require sourcing on all platforms
set +e
source $HOME/.local/bin/env
set -e
fi
export UV_PROJECT_ENVIRONMENT="$DIR/.venv"
uv sync --all-extras --upgrade
source "$DIR/.venv/bin/activate"