From 8abfb8873645dcbe769e188264f1ad62c78c1b51 Mon Sep 17 00:00:00 2001 From: Wang Mingyu Date: Tue, 18 Feb 2025 15:39:20 +0800 Subject: python3-cython: upgrade 3.0.11 -> 3.0.12 Bugfix: =========== * Release 3.0.11 introduced some incorrect "noexcept" warnings. * Conditional assignments to variables using the walrus operator could crash. * Dict assignments to struct members with reserved C names could generate invalid C code. * Fused ctuples with the same entry types but different sizes could fail to compile. * In Py3, 'pyximport' was not searching 'sys.path' when looking for importable source files. * Using '& 0' on integers produced with 'int.from_bytes()' could read invalid memory on Python 3.10. * Modules could fail to compile in PyPy 3.11 due to missing CPython specific header files. Patch by Matti Picus. * Minor fix in C++ "partial_sum()" declaration. (From OE-Core rev: 8ea41b6736f2a0d20816081dcb2363b626030385) Signed-off-by: Wang Mingyu Signed-off-by: Richard Purdie --- .../python/python3-cython_3.0.11.bb | 45 ---------------------- .../python/python3-cython_3.0.12.bb | 45 ++++++++++++++++++++++ 2 files changed, 45 insertions(+), 45 deletions(-) delete mode 100644 meta/recipes-devtools/python/python3-cython_3.0.11.bb create mode 100644 meta/recipes-devtools/python/python3-cython_3.0.12.bb (limited to 'meta/recipes-devtools/python') diff --git a/meta/recipes-devtools/python/python3-cython_3.0.11.bb b/meta/recipes-devtools/python/python3-cython_3.0.11.bb deleted file mode 100644 index c1d45eaff5..0000000000 --- a/meta/recipes-devtools/python/python3-cython_3.0.11.bb +++ /dev/null @@ -1,45 +0,0 @@ -SUMMARY = "The Cython language" -HOMEPAGE = "https://pypi.org/project/Cython/" -DESCRIPTION = "Cython is a language specially designed for writing Python extension modules. \ -It's designed to bridge the gap between the nice, high-level, easy-to-use world of Python \ -and the messy, low-level world of C." -SECTION = "devel/python" -LICENSE = "Apache-2.0" -LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=61c3ee8961575861fa86c7e62bc9f69c" - -SRC_URI += "file://0001-Output-import-relative-paths-in-generated-C-code.-GH.patch" -SRC_URI[sha256sum] = "7146dd2af8682b4ca61331851e6aebce9fe5158e75300343f80c07ca80b1faff" - -inherit pypi setuptools3 cython - -# No need to depend on self -DEPENDS:remove = "python3-cython-native" - -do_install:append() { - # rename scripts that would conflict with the Python 2 build of Cython - mv ${D}${bindir}/cython ${D}${bindir}/cython3 - mv ${D}${bindir}/cythonize ${D}${bindir}/cythonize3 - mv ${D}${bindir}/cygdb ${D}${bindir}/cygdb3 -} - -RDEPENDS:${PN}:class-target += "\ - python3-misc \ - python3-netserver \ - python3-pkgutil \ - python3-pyparsing \ - python3-setuptools \ - python3-shell \ - python3-xml \ -" - -RDEPENDS:${PN}:class-nativesdk += "\ - nativesdk-python3-misc \ - nativesdk-python3-netserver \ - nativesdk-python3-pkgutil \ - nativesdk-python3-pyparsing \ - nativesdk-python3-setuptools \ - nativesdk-python3-shell \ - nativesdk-python3-xml \ -" - -BBCLASSEXTEND = "native nativesdk" diff --git a/meta/recipes-devtools/python/python3-cython_3.0.12.bb b/meta/recipes-devtools/python/python3-cython_3.0.12.bb new file mode 100644 index 0000000000..f1951e3ae6 --- /dev/null +++ b/meta/recipes-devtools/python/python3-cython_3.0.12.bb @@ -0,0 +1,45 @@ +SUMMARY = "The Cython language" +HOMEPAGE = "https://pypi.org/project/Cython/" +DESCRIPTION = "Cython is a language specially designed for writing Python extension modules. \ +It's designed to bridge the gap between the nice, high-level, easy-to-use world of Python \ +and the messy, low-level world of C." +SECTION = "devel/python" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=61c3ee8961575861fa86c7e62bc9f69c" + +SRC_URI += "file://0001-Output-import-relative-paths-in-generated-C-code.-GH.patch" +SRC_URI[sha256sum] = "b988bb297ce76c671e28c97d017b95411010f7c77fa6623dd0bb47eed1aee1bc" + +inherit pypi setuptools3 cython + +# No need to depend on self +DEPENDS:remove = "python3-cython-native" + +do_install:append() { + # rename scripts that would conflict with the Python 2 build of Cython + mv ${D}${bindir}/cython ${D}${bindir}/cython3 + mv ${D}${bindir}/cythonize ${D}${bindir}/cythonize3 + mv ${D}${bindir}/cygdb ${D}${bindir}/cygdb3 +} + +RDEPENDS:${PN}:class-target += "\ + python3-misc \ + python3-netserver \ + python3-pkgutil \ + python3-pyparsing \ + python3-setuptools \ + python3-shell \ + python3-xml \ +" + +RDEPENDS:${PN}:class-nativesdk += "\ + nativesdk-python3-misc \ + nativesdk-python3-netserver \ + nativesdk-python3-pkgutil \ + nativesdk-python3-pyparsing \ + nativesdk-python3-setuptools \ + nativesdk-python3-shell \ + nativesdk-python3-xml \ +" + +BBCLASSEXTEND = "native nativesdk" -- cgit v1.2.3-54-g00ecf