Skip to contentSkip to conversation

python3-pyzmq: Add RDEPENDS for python3-pyzmq-ptest

PATCH Superseded [email protected] 1 participant 2 messages Aug 31, 2022

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 python3-pyzmq: Add RDEPENDS for python3-pyzmq-ptest

From: Mingli Yu <[email protected]>

Fixes:

  # ./run-ptest
  ./run-ptest: line 3: pytest: command not found
---
 meta-python/recipes-devtools/python/python3-pyzmq_23.2.1.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta-python/recipes-devtools/python/python3-pyzmq_23.2.1.bb +4 -0
index 40cb22b5e..78545f5c3 100644
@@ -30,6 +30,10 @@ RDEPENDS:${PN} += "\
         ${PYTHON_PN}-multiprocessing \
 "
 
+RDEPENDS:${PN}-ptest += "\
+        ${PYTHON_PN}-pytest \
+"
+
 RDEPENDS:${PN}-ptest += "\
         ${PN}-test \
 "
Signature · 1 line
2.25.1
#1 lore raw

PATCH 2/2 python3-pyzmq: Fix buildpaths issue

From: Mingli Yu <[email protected]>

Fixes:

WARNING: python3-pyzmq-23.2.0-r0 do_package_qa: QA Issue: File /usr/lib64/python3.10/site-packages/zmq/utils/config.json in package python3-pyzmq contains reference to TMPDIR File /usr/lib64/python3.10/site-packages/zmq/utils/compiler.json in package python3-pyzmq contains reference to TMPDIR [buildpaths]

---
 meta-python/recipes-devtools/python/python3-pyzmq_23.2.1.bb | 5 +++++
 1 file changed, 5 insertions(+)
meta-python/recipes-devtools/python/python3-pyzmq_23.2.1.bb +5 -0
index 78545f5c3..f5e2e2c36 100644
@@ -47,6 +47,11 @@ do_compile:prepend() {
     echo no_libzmq_extension = True >> ${S}/setup.cfg
 }
 
+do_install:append() {
+        sed -i -e 's#${RECIPE_SYSROOT}##g' ${D}${PYTHON_SITEPACKAGES_DIR}/zmq/utils/config.json
+        sed -i -e 's#${RECIPE_SYSROOT}##g' ${D}${PYTHON_SITEPACKAGES_DIR}/zmq/utils/compiler.json
+}
+
 do_install_ptest() {
         install -d ${D}${PTEST_PATH}/tests
         cp -rf ${S}/zmq/tests/* ${D}${PTEST_PATH}/tests/
Signature · 1 line
2.25.1