python3-gpiod: add missing run-time dependencies
PATCH 1/2 python3-gpiod: add missing run-time dependencies
From: Bartosz Golaszewski <[email protected]>
The gpiod package needs some standard python modules so add them to RDEPENDS.
--- meta-python/recipes-devtools/python/python3-gpiod_2.0.bb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
meta-python/recipes-devtools/python/python3-gpiod_2.0.bb +5 -1
@@ -18,7 +18,11 @@ S = "${WORKDIR}/libgpiod-${PV}/bindings/python" inherit setuptools3 ptest DEPENDS += "libgpiod" -RDEPENDS:${PN} += "libgpiod (>= 2.0)" +RDEPENDS:${PN} += " \ + libgpiod (>= 2.0) \ + python3-datetime \ + python3-profile \ +" RDEPENDS:${PN}-ptest += "python3-setuptools" export GPIOD_WITH_TESTS = "${@bb.utils.contains("PTEST_ENABLED", "1", "1", "0", d)}"
Signature · 1 line
2.37.2
PATCH 2/2 python3-gpiod: fetch sources from pypi
From: Bartosz Golaszewski <[email protected]>
Python bindings to libgpiod are now available on pypi. The source package is a limited subset of the original repository. As such the ptest package now requires the libgpiod-ptest to be available at run-time (for libgpiosim.so against which the test C extension is linked).
The problem with installing the C extensions for tests is now fixed so drop the do_install:append().
We update the version of the recipe but the changes only apply to building and packaging, there are no functional changes to the code.
--- .../python/python3-gpiod_2.0.1.bb | 41 ++++++++++++++++ .../python/python3-gpiod_2.0.bb | 49 ------------------- 2 files changed, 41 insertions(+), 49 deletions(-) create mode 100644 meta-python/recipes-devtools/python/python3-gpiod_2.0.1.bb delete mode 100644 meta-python/recipes-devtools/python/python3-gpiod_2.0.bb
meta-python/recipes-devtools/python/python3-gpiod_2.0.1.bb new file +41 -0
@@ -0,0 +1,41 @@ +SUMMARY = "Python bindings for libgpiod." +AUTHOR = "Bartosz Golaszewski <[email protected]>" + +LICENSE = "GPL-2.0-or-later & LGPL-2.1-or-later & CC-BY-SA-4.0" +# The actual license files live in the upstream libgpiod from which the pypi +# package is spun out. +LIC_FILES_CHKSUM = "file://setup.py;beginline=57;endline=57;md5=120334ed83ec0cb248605e775bd13b87" + +SRC_URI += "file://run-ptest" + +SRC_URI[sha256sum] = "d5c0f9502e97e7359b9dd601e29f15d668983ce50f5c13323f3302845f790fa6" + +inherit setuptools3 ptest pypi + +PYPI_PACKAGE = "libgpiod" + +DEPENDS += "libgpiod" +RDEPENDS:${PN} += " \ + libgpiod (>= 2.0) \ + python3-datetime \ + python3-profile \ +" +RDEPENDS:${PN}-ptest += " \ + libgpiod-ptest \ + python3-setuptools \ +" + +export GPIOD_WITH_TESTS = "${@bb.utils.contains("PTEST_ENABLED", "1", "1", "0", d)}" +# Setuptools store full filesystem paths in DWARF files. Map them to './' to +# avoid QA warnings. +export CFLAGS = "${PTEST_CFLAGS} -fdebug-prefix-map=${B}=./" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/gpiod-test/gpiosim + install -d ${D}${PTEST_PATH}/gpiod-test/procname + install -m 0644 ${S}/tests/*.py ${D}${PTEST_PATH}/gpiod-test/ + install -m 0644 ${B}/build/lib*/tests/gpiosim/_ext* ${D}${PTEST_PATH}/gpiod-test/gpiosim + install -m 0644 ${S}/tests/gpiosim/*.py ${D}${PTEST_PATH}/gpiod-test/gpiosim + install -m 0644 ${B}/build/lib*/tests/procname/_ext* ${D}${PTEST_PATH}/gpiod-test/procname + install -m 0644 ${S}/tests/procname/*.py ${D}${PTEST_PATH}/gpiod-test/procname +}
meta-python/recipes-devtools/python/python3-gpiod_2.0.bb deleted +0 -49
49 lines not on this page · raw message
Signature · 1 line
2.37.2