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

RPI.GPIO should be optional #270

Open
kwavnet opened this issue Jan 8, 2024 · 0 comments · May be fixed by #284
Open

RPI.GPIO should be optional #270

kwavnet opened this issue Jan 8, 2024 · 0 comments · May be fixed by #284

Comments

@kwavnet
Copy link

kwavnet commented Jan 8, 2024

When I attempt to install on an embedded device

RPI.GPIO; platform_system=="Linux"
fails to install for different reasons.

But if I manually install all of the dependencies myself, the actual lib (in this case luma.led_matrix) still works, as apparently RPI.GPIO is only needed if GPIOs are used, but not with

serial = spi(port=0, device=0, gpio=noop())
device = max7219(serial, width=8, height=8)

Wouldn't it be better to turn RPI.GPIO into an extra dependency, like described here https://setuptools.pypa.io/en/latest/userguide/dependency_management.html#optional-dependencies ?

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

Successfully merging a pull request may close this issue.

2 participants