Release 260111
This commit is contained in:
19
opendbc_repo/setup.sh
Executable file
19
opendbc_repo/setup.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/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
|
||||
fi
|
||||
|
||||
export UV_PROJECT_ENVIRONMENT="$BASEDIR/.venv"
|
||||
uv sync --all-extras
|
||||
source "$PYTHONPATH/.venv/bin/activate"
|
||||
|
||||
$BASEDIR/opendbc/safety/tests/misra/install.sh
|
||||
Reference in New Issue
Block a user