Files
buildroot/package/python-gpiod/Config.in
Marcus Hoffmann b243b77ebe package/python-gpiod: new package
This adds the python bindings of libgpiod for version 2+.
While the python bindings for v1 were optionally built and
installed as part of the main libgpiod build, for v2 they have now been
published to pypi.org for easier consumption in the general python
ecosystem.

We need to set LINK_SYSTEM_LIBGPIOD=1 to actually build against the
system version of libgpiod which we install and not use a separate
bundled copy.

The package is licensed as libgpiod, but as published to pypi doesn't
include the LICENSE file that's part of upstream repository.
Reference pyproject.toml as that has the license identifier as a
workaround.

Signed-off-by: Marcus Hoffmann <buildroot@bubu1.eu>
Signed-off-by: Julien Olivain <ju.o@free.fr>
2025-11-22 13:37:57 +01:00

16 lines
507 B
Plaintext

config BR2_PACKAGE_PYTHON_GPIOD
bool "python-gpiod"
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_10 # libgpiod2
depends on !BR2_PACKAGE_LIBGPIOD # libgpiod2
select BR2_PACKAGE_LIBGPIOD2
help
Python bindings for libgpiod (v2+).
https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/tree/bindings/python/
comment "python-gpiod needs kernel headers >= 5.10"
depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_10
comment "python-gpiod is incompatible with libgpiod"
depends on BR2_PACKAGE_LIBGPIOD