mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-12-02 02:53:41 +08:00
op setup: openpilot's own venv in a uv workspace, find op.sh's checkout from outside (#39237)
This commit is contained in:
committed by
firestar5683
parent
e0a091f6c8
commit
ff3b2ef1ca
+1
-1
@@ -63,7 +63,7 @@ function op_get_openpilot_dir() {
|
||||
|
||||
# Fallback to hardcoded directories if not found
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
|
||||
for dir in "$(readlink -f "$SCRIPT_DIR/../..")" "$HOME/openpilot" "/data/openpilot"; do
|
||||
for dir in "$(readlink -f "$SCRIPT_DIR/..")" "$HOME/openpilot" "/data/openpilot"; do
|
||||
if [[ -f "$dir/launch_openpilot.sh" ]]; then
|
||||
OPENPILOT_ROOT="$dir"
|
||||
return 0
|
||||
|
||||
@@ -127,8 +127,8 @@ function install_python_deps() {
|
||||
uv self update || true
|
||||
|
||||
echo "installing python packages..."
|
||||
uv sync --frozen --all-extras
|
||||
source .venv/bin/activate
|
||||
UV_PROJECT_ENVIRONMENT="$ROOT/.venv" uv sync --frozen --all-extras
|
||||
source "$ROOT/.venv/bin/activate"
|
||||
python3 scripts/lint/check_workflows.py --install
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user