simple pip install test (#38218)

* fails

* lil more

* try that
This commit is contained in:
Adeeb Shihadeh
2026-06-21 19:39:21 -07:00
committed by GitHub
parent 8a9ca15464
commit 2e9fa514bb
2 changed files with 31 additions and 1 deletions
+9 -1
View File
@@ -121,7 +121,15 @@ requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = [ "." ]
packages = [
"openpilot",
"msgq",
"opendbc",
"panda",
"rednose",
"teleoprtc",
"tinygrad",
]
[tool.hatch.metadata]
allow-direct-references = true
+22
View File
@@ -0,0 +1,22 @@
#!/usr/bin/env bash
set -euxo pipefail
SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
REPO_ROOT="$(git -C "$SCRIPT_DIR/.." rev-parse --show-toplevel)"
PYTHON_VERSION="$(cat "$REPO_ROOT/.python-version")"
PACKAGE="${1:-$REPO_ROOT}"
TMPDIR="$(mktemp -d)"
trap 'rm -rf "$TMPDIR"' EXIT
cd "$TMPDIR"
uv venv --python "$PYTHON_VERSION"
source .venv/bin/activate
uv pip install "$PACKAGE"
python3 - <<'PY'
from openpilot.tools.lib.logreader import LogReader
assert LogReader.__name__ == "LogReader"
print("ok: imported LogReader")
PY