Setup proper pip package
pandacan is already a pip package, but it doesn't include the FW and some other things to fully use the panda project.
The package should be sufficient to remove panda as a submodule from openpilot and add it as a normal Python dependency to the pyproject.toml. For validation, make an openpilot PR that does this and ensure CI passes.
@adeebshihadeh can I work on this one ?
Created PR #2241 to implement comprehensive pip package with all necessary components including firmware, certificates, and build tools. The package enables openpilot to replace git submodule usage with standard pip installation.
This PR converts the panda repository to be pip-installable so openpilot can use it as a normal Python dependency instead of a git submodule.
Changes:
Add pyproject.toml package configuration Add setup.py for pip compatibility Export USBPACKET_MAX_SIZE constant needed by tests The package installs as "panda" and maintains all existing import paths.
I have prepared https://github.com/commaai/openpilot/pull/36034 that can be used when pandacan 0.0.10 is published on pypi
Hi I am working on the issue, I have built the firmware, right now when python -m build runs, the firmware gets built and we get .elf, .signed and .bin files in the whl, when I test this panda build in openpilot I noticed that we have these imports
openpilot/tools/cabana/panda.h
#include "panda/board/health.h"
#include "panda/board/can.h"
do u want .h files in the panda build?
Yes, you can see how opendbc does this.