Build panda firmware during package build and enforce wheel artifact checks#2367
Open
FuZoe wants to merge 2 commits intocommaai:masterfrom
Open
Build panda firmware during package build and enforce wheel artifact checks#2367FuZoe wants to merge 2 commits intocommaai:masterfrom
FuZoe wants to merge 2 commits intocommaai:masterfrom
Conversation
added 2 commits
March 2, 2026 16:45
…date wheel contents - add setup.py with build_firmware command invoked from build subcommands - add build requirements for firmware compilation (scons, pycryptodome, opendbc) - include firmware binaries and cert files via setuptools package data - add MANIFEST.in for sdist source completeness - add scripts/check_wheel.py to enforce required/forbidden wheel artifacts - add CI workflow to build wheel, validate contents, test wheel install, and test editable install hook
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Compile panda firmware during package build (not during wheel install) and include firmware binaries in the wheel.
Changes
Build System
setup.py: custombuild_firmwarecommand wired intobuildsubcommandspyproject.toml: build requirements (scons,pycryptodome,opendbc) and package data for firmware/certsMANIFEST.in: include source files for sdistCI
package.yml: build wheel, validate contents, test wheel install, test editable hookValidation
scripts/check_wheel.py: enforces 9 required files and rejects.o/.d/.elf/.mapintermediatesRequired Files in Wheel
panda/board/obj/panda_h7.bin.signedpanda/board/obj/panda_jungle_h7.bin.signedpanda/board/obj/body_h7.bin.signedpanda/board/obj/bootstub.panda_h7.binpanda/board/obj/bootstub.panda_jungle_h7.binpanda/board/obj/bootstub.body_h7.binpanda/board/certs/debugpanda/board/certs/debug.pubpanda/board/certs/release.pubPrerequisites
ARM toolchain (
arm-none-eabi-gcc) must be available for source builds. CI provides ARM toolchain setup.Local Test
# With dependencies pre-installed (or use --no-isolation for network-limited environments) python -m build --wheel --no-isolationpython scripts/check_wheel.py dist/pandacan-*.whlFixes #2239