From d4075ac94379e74408cb85d2e7ee463a1c36b7d0 Mon Sep 17 00:00:00 2001 From: Mingli Yu Date: Fri, 11 Apr 2025 15:55:21 +0800 Subject: python3-pyzmq: Upgrade 25.1.2 -> 26.3.0 * LICENSE update: pyzmq no longer ships an LGPL core, it is BSD-only [1]. The LICENSE.BSD is renamed to LICENSE.md [2]. * The new version switches to scikit-build-core backend and build with cmake. [1] https://github.com/zeromq/pyzmq/commit/2f461c578b0cf188652e3ada843094cb5d24a02a [2] https://github.com/zeromq/pyzmq/commit/1f4bc04f433b34f95dd703d6fe018042a65e2903 Signed-off-by: Mingli Yu Signed-off-by: Khem Raj --- .../python/python3-pyzmq/club-rpath-out.patch | 29 ----------- .../python/python3-pyzmq_25.1.2.bb | 58 --------------------- .../python/python3-pyzmq_26.3.0.bb | 60 ++++++++++++++++++++++ 3 files changed, 60 insertions(+), 87 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-pyzmq/club-rpath-out.patch delete mode 100644 meta-python/recipes-devtools/python/python3-pyzmq_25.1.2.bb create mode 100644 meta-python/recipes-devtools/python/python3-pyzmq_26.3.0.bb (limited to 'meta-python/recipes-devtools/python') diff --git a/meta-python/recipes-devtools/python/python3-pyzmq/club-rpath-out.patch b/meta-python/recipes-devtools/python/python3-pyzmq/club-rpath-out.patch deleted file mode 100644 index 61aeaca5fa..0000000000 --- a/meta-python/recipes-devtools/python/python3-pyzmq/club-rpath-out.patch +++ /dev/null @@ -1,29 +0,0 @@ -From efae4e08d13e0958d929ea524e21c0a210b31982 Mon Sep 17 00:00:00 2001 -From: Leon Anavi -Date: Fri, 22 Jan 2021 11:41:12 +0200 -Subject: [PATCH] setup.py: Adjust _add_rpath - -Fix error: unrecognized command-line option '-R' - -Upstream-Status: Inappropriate [oe specific] - -Signed-off-by: Leon Anavi - ---- - setup.py | 3 --- - 1 file changed, 3 deletions(-) - -diff --git a/setup.py b/setup.py -index b634d94..7f6a2f1 100755 ---- a/setup.py -+++ b/setup.py -@@ -235,9 +235,6 @@ def _add_rpath(settings, path): - """ - if sys.platform == 'darwin': - settings['extra_link_args'].extend(['-Wl,-rpath', '-Wl,%s' % path]) -- else: -- settings['runtime_library_dirs'].append(path) -- - - def settings_from_prefix(prefix=None): - """load appropriate library/include settings from ZMQ prefix""" diff --git a/meta-python/recipes-devtools/python/python3-pyzmq_25.1.2.bb b/meta-python/recipes-devtools/python/python3-pyzmq_25.1.2.bb deleted file mode 100644 index 39b754dd5d..0000000000 --- a/meta-python/recipes-devtools/python/python3-pyzmq_25.1.2.bb +++ /dev/null @@ -1,58 +0,0 @@ -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 & LGPL-3.0-only" -LIC_FILES_CHKSUM = "\ - file://LICENSE.BSD;md5=1787206f198344195a671b60326c59dc \ - file://LICENSE.LESSER;md5=0e99bfbdd8b9d33b0221986fe3be89ed \ -" - -DEPENDS = "python3-packaging-native python3-setuptools-scm-native zeromq" - -SRC_URI:append = " \ - file://club-rpath-out.patch \ - file://run-ptest \ -" -SRC_URI[sha256sum] = "93f1aa311e8bb912e34f004cf186407a4e90eec4f0ecc0efd26056bf7eda0226" - -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-unittest-automake-output \ - python3-unixadmin \ -" - -do_compile:prepend() { - echo [global] > ${S}/setup.cfg - echo zmq_prefix = ${STAGING_DIR_HOST} >> ${S}/setup.cfg - echo have_sys_un_h = True >> ${S}/setup.cfg - echo skip_check_zmq = True >> ${S}/setup.cfg - echo libzmq_extension = False >> ${S}/setup.cfg - 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/ -} diff --git a/meta-python/recipes-devtools/python/python3-pyzmq_26.3.0.bb b/meta-python/recipes-devtools/python/python3-pyzmq_26.3.0.bb new file mode 100644 index 0000000000..c7225aa259 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pyzmq_26.3.0.bb @@ -0,0 +1,60 @@ +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" \ +" + +SRC_URI:append = " \ + file://run-ptest \ +" + +SRC_URI[sha256sum] = "f1cd68b8236faab78138a8fc703f7ca0ad431b17a3fcac696358600d4e6243b3" + +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-unittest-automake-output \ + python3-unixadmin \ +" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/tests + cp -rf ${S}/tests/* ${D}${PTEST_PATH}/tests/ +} -- cgit v1.2.3-54-g00ecf