Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Install package with extras
run: |
python -m pip install --upgrade pip
pip install -e ".[dev,ai,rest,mcp,mdf,adapters]"
pip install -e ".[dev,ai,rest,mcp,mdf,adapters,openpilot]"

- name: Lint
run: ruff check canlab tests
Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:
- name: Install package
run: |
python -m pip install --upgrade pip
pip install -e ".[dev,ai,rest,mcp,adapters]"
pip install -e ".[dev,ai,rest,mcp,mdf,adapters,openpilot]"

# Catches bundling gaps such as a missing Qt submodule in canlab.spec
# (e.g. QtMultimedia) that only surface in the packaged binary.
Expand Down
11 changes: 10 additions & 1 deletion canlab.spec
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,25 @@ ROOT = Path("canlab")
# _imaging.so or the manylinux-bundled libtiff/libjpeg/etc. without collect_all.
pil_datas, pil_binaries, pil_hiddenimports = collect_all("PIL")

# pycapnp reads openpilot logs. It is a compiled extension with schema files of
# its own, so it is collected whole when it is installed.
try:
capnp_datas, capnp_binaries, capnp_hiddenimports = collect_all("capnp")
except Exception:
capnp_datas, capnp_binaries, capnp_hiddenimports = [], [], []

a = Analysis(
[str(ROOT / "main.py")],
pathex=["."],
binaries=pil_binaries,
binaries=pil_binaries + capnp_binaries,
datas=[
(str(ROOT / "canlab.png"), "canlab" ),
(str(ROOT / "assets"), "canlab/assets" ),
(str(ROOT / "sample_data"), "canlab/sample_data" ),
# the NMEA 2000 table distilled from canboat, and its licence notice
(str(ROOT / "core" / "data"), "canlab/core/data" ),
*pil_datas,
*capnp_datas,
],
hiddenimports=[
*collect_submodules("canlab"),
Expand Down Expand Up @@ -63,6 +71,7 @@ a = Analysis(
"pydantic", "pydantic.v1", "pydantic_core",
"anthropic", "anthropic.types", "anthropic._models",
*pil_hiddenimports,
*capnp_hiddenimports,
],
excludes=[
"tkinter",
Expand Down
30 changes: 30 additions & 0 deletions canlab/core/data/cereal/NOTICE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
The capnp schema in this directory is copied from comma.ai's repositories:

log.capnp, custom.capnp, deprecated.capnp, include/c++.capnp
https://github.com/commaai/openpilot (openpilot/cereal)
Copyright (c) 2018, Comma.ai, Inc.
car.capnp
https://github.com/commaai/opendbc (opendbc/car)
Copyright (c) 2020, Comma.ai, Inc.

Both are released under the MIT License:

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

The files are unmodified.
Loading
Loading