Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python Packaging #1753

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Python Packaging #1753

wants to merge 2 commits into from

Conversation

chrisgilldc
Copy link

Per Marc's suggestion, making a PR here for review.
I put together packaging information for Python so that rpi-rgb-led-matrix can be installed as a package directly with pip. This is currently in a "works for me" state.
The build-rpi-rgb-led-matrix.py script uses the Hatch prebuild hooks to call the makefile and build the C libraries. The settings in hatch.toml make the Python package out of the files in "bindings/python/rgbmatrix". This does not include extensive checking for failures of the make process or passing of build options for different python packagers or cross-compiling.
Also note that PyPi no longer accepts local tags for version numbers. I had intended to put in code that would calculate a version based on the previous commit to the repo (ie: '0.0.1+20240924' for commit 0ff6a69). That may still be a viable strategy if you don't care about publishing to PyPi.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant