meta-openembedded/meta-python/recipes-devtools/python/python3-pyzmq_27.0.2.bb
Hongxu Jia 914561cfc2
python3-pyzmq: set cmake build dir to support reproducible
According to [1], set cmake build dir, otherwise a unique temporary directory
is used which caused generated library not be reproducible
...
    "build-dir": {
      "type": "string",
      "default": "",
      "description": "The CMake build directory. Defaults to a unique temporary directory."
    },
...

Note: To support reproducible, it also requires oe-core commit [2] to be merged

[1] https://github.com/scikit-build/scikit-build-core/blob/main/src/scikit_build_core/resources/scikit-build.schema.json#L487C6-L487C16
[2] https://lists.openembedded.org/g/openembedded-core/message/223604?p=%2C%2C%2C20%2C0%2C0%2C0%3A%3ACreated%2C%2C%2C20%2C2%2C0%2C115291386%2Cd%253D3&d=3

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-09-18 12:15:16 -07:00

64 lines
1.9 KiB
BlitzBasic

SUMMARY = "PyZMQ: Python bindings for ZMQ"
DESCRIPTION = "This package contains Python bindings for ZeroMQ. ZMQ is a lightweight and fast messaging implementation."
HOMEPAGE = "https://zeromq.org/bindings:python"
LICENSE = "BSD-3-Clause"
LIC_FILES_CHKSUM = "\
file://LICENSE.md;md5=1787206f198344195a671b60326c59dc \
"
DEPENDS = "python3-packaging-native \
python3-setuptools-scm-native \
python3-scikit-build-core-native \
cmake-native \
ninja-native \
zeromq \
"
PEP517_BUILD_OPTS = "--skip-dependency-check \
-Ccmake.define.PYZMQ_LIBZMQ_RPATH=OFF \
-Ccmake.define.PYZMQ_NO_BUNDLE=ON \
-Ccmake.define.CMAKE_FIND_ROOT_PATH_MODE_PACKAGE=ONLY \
-Ccmake.define.CMAKE_FIND_ROOT_PATH_MODE_PROGRAM=ONLY \
-Ccmake.define.CMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY \
-Ccmake.define.CMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY \
-Ccmake.define.CMAKE_FIND_ROOT_PATH="${STAGING_DIR_NATIVE}" \
-Ccmake.build-type="RelWithDebInfo" \
-Cbuild-dir="${B}" \
"
SRC_URI:append = " \
file://run-ptest \
"
SRC_URI[sha256sum] = "b398dd713b18de89730447347e96a0240225e154db56e35b6bb8447ffdb07798"
inherit pypi pkgconfig python_setuptools_build_meta ptest cython
PACKAGES =+ "\
${PN}-test \
"
FILES:${PN}-test += "\
${PYTHON_SITEPACKAGES_DIR}/*/tests \
"
RDEPENDS:${PN} += "\
python3-json \
python3-multiprocessing \
python3-tornado \
"
RDEPENDS:${PN}-ptest += "\
${PN}-test \
python3-pytest \
python3-asyncio \
python3-pytest-asyncio \
python3-unittest-automake-output \
python3-unixadmin \
"
do_install_ptest() {
install -d ${D}${PTEST_PATH}/tests
cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/
}