python3-pyzmq: Fix buildpaths issue

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]

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Mingli Yu
2022-08-31 17:45:17 +08:00
committed by Khem Raj
parent 84ad0699f1
commit e253aa31ea

View File

@@ -43,6 +43,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/