b243b77ebe
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>
18 lines
742 B
Makefile
18 lines
742 B
Makefile
################################################################################
|
|
#
|
|
# python-gpiod
|
|
#
|
|
################################################################################
|
|
|
|
PYTHON_GPIOD_VERSION = 2.4.0
|
|
PYTHON_GPIOD_SOURCE = gpiod-$(PYTHON_GPIOD_VERSION).tar.gz
|
|
PYTHON_GPIOD_SITE = https://files.pythonhosted.org/packages/0c/dc/5a6bd309345bd9cfa7e098174ab7e65367e408539b6c1998e4f267c673cd
|
|
PYTHON_GPIOD_SETUP_TYPE = setuptools
|
|
PYTHON_GPIOD_LICENSE = LGPL-2.1+
|
|
# The package license follows libgpiod's license but doesn't include the LICENSE text in the pypi distrobuted package again
|
|
PYTHON_GPIOD_LICENSE_FILES = pyproject.toml
|
|
PYTHON_GPIOD_DEPENDENCIES = libgpiod2
|
|
PYTHON_GPIOD_ENV = LINK_SYSTEM_LIBGPIOD=1
|
|
|
|
$(eval $(python-package))
|