diff options
| author | Trevor Gamblin <tgamblin@baylibre.com> | 2024-08-09 09:53:08 -0400 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-08-13 09:29:15 +0100 |
| commit | 17057fee50052b7c011b35fd1d830dd3230d9093 (patch) | |
| tree | d68633b0c9b0fdc759e0c8f5f16a259381d8d72a /meta/recipes-devtools/python/python3-cython_3.0.10.bb | |
| parent | 71b650ecf40807e953f7b1db38862510befb8777 (diff) | |
| download | poky-17057fee50052b7c011b35fd1d830dd3230d9093.tar.gz | |
python3-cython: upgrade 3.0.10 -> 3.0.11
The upstream package changed from uppercase to lowercase in "Cython", so
adjust PYPI_PACKAGE and the sed call in cython_fix_sources to match.
Changelog (https://github.com/cython/cython/releases/tag/3.0.11-1):
Features added
--------------
* The C++11 ``emplace*`` methods were added to ``libcpp.deque``.
Patch by Somin An. (Github issue :issue:`6159`)
Bugs fixed
----------
* The exception check value of functions declared in pxd files was not always applied in 3.0.10.
(Github issue :issue:`6122`)
* A crash on exception deallocations was fixed.
(Github issue :issue:`6022`)
* A crash was fixed when assigning a zero-length slice to a memoryview.
Patch by Michael Man. (Github issue :issue:`6227`)
* ``libcpp.optional.value()`` could crash if it raised a C++ exception.
Patch by Alexander Condello. (Github issue :issue:`6190`)
* The return type of ``str()`` was mishandled, leading to crashes with ``language_level=3``.
(Github issue :issue:`6166`)
* ``bytes.startswith/endswith()`` failed for non-bytes substrings (e.g. ``bytearray``).
(Github issue :issue:`6168`)
* Fused ctuples crashed Cython.
(Github issue :issue:`6068`)
* A compiler crash was fixed when using extension types in fused types.
(Github issue :issue:`6204`)
* The module cleanup code was incorrect for globally defined memory view slices.
(Github issue :issue:`6276`)
* Some adaptations were made to enable compilation in Python 3.13.
(Github issues :issue:`5997`, :issue:`6182`, :issue:`6251`)
(From OE-Core rev: a505dfa0489de57bc07ffec2b7fa8c5486013393)
Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python/python3-cython_3.0.10.bb')
| -rw-r--r-- | meta/recipes-devtools/python/python3-cython_3.0.10.bb | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/meta/recipes-devtools/python/python3-cython_3.0.10.bb b/meta/recipes-devtools/python/python3-cython_3.0.10.bb deleted file mode 100644 index 86ae5f25e9..0000000000 --- a/meta/recipes-devtools/python/python3-cython_3.0.10.bb +++ /dev/null | |||
| @@ -1,73 +0,0 @@ | |||
| 1 | SUMMARY = "The Cython language" | ||
| 2 | HOMEPAGE = "https://pypi.org/project/Cython/" | ||
| 3 | DESCRIPTION = "Cython is a language specially designed for writing Python extension modules. \ | ||
| 4 | It's designed to bridge the gap between the nice, high-level, easy-to-use world of Python \ | ||
| 5 | and the messy, low-level world of C." | ||
| 6 | SECTION = "devel/python" | ||
| 7 | LICENSE = "Apache-2.0" | ||
| 8 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=61c3ee8961575861fa86c7e62bc9f69c" | ||
| 9 | PYPI_PACKAGE = "Cython" | ||
| 10 | |||
| 11 | SRC_URI[sha256sum] = "dcc96739331fb854dcf503f94607576cfe8488066c61ca50dfd55836f132de99" | ||
| 12 | |||
| 13 | inherit pypi setuptools3 | ||
| 14 | |||
| 15 | # running build_ext a second time during install fails, because Python | ||
| 16 | # would then attempt to import cythonized modules built for the target | ||
| 17 | # architecture. | ||
| 18 | SETUPTOOLS_INSTALL_ARGS += "--skip-build" | ||
| 19 | |||
| 20 | do_install:append() { | ||
| 21 | # Make sure we use /usr/bin/env python3 | ||
| 22 | for PYTHSCRIPT in `grep -rIl '^#!.*python' ${D}`; do | ||
| 23 | sed -i -e '1s|^#!.*|#!/usr/bin/env python3|' $PYTHSCRIPT | ||
| 24 | done | ||
| 25 | |||
| 26 | # remove build paths from generated sources | ||
| 27 | sed -i -e 's|${WORKDIR}||' ${S}/Cython/*.c ${S}/Cython/Compiler/*.c ${S}/Cython/Plex/*.c | ||
| 28 | |||
| 29 | # rename scripts that would conflict with the Python 2 build of Cython | ||
| 30 | mv ${D}${bindir}/cython ${D}${bindir}/cython3 | ||
| 31 | mv ${D}${bindir}/cythonize ${D}${bindir}/cythonize3 | ||
| 32 | mv ${D}${bindir}/cygdb ${D}${bindir}/cygdb3 | ||
| 33 | } | ||
| 34 | |||
| 35 | PACKAGESPLITFUNCS =+ "cython_fix_sources" | ||
| 36 | |||
| 37 | cython_fix_sources () { | ||
| 38 | for f in ${PKGD}${TARGET_DBGSRC_DIR}/Cython/Compiler/FlowControl.c \ | ||
| 39 | ${PKGD}${TARGET_DBGSRC_DIR}/Cython/Compiler/FusedNode.c \ | ||
| 40 | ${PKGD}${TARGET_DBGSRC_DIR}/Cython/Compiler/Scanning.c \ | ||
| 41 | ${PKGD}${TARGET_DBGSRC_DIR}/Cython/Compiler/Visitor.c \ | ||
| 42 | ${PKGD}${TARGET_DBGSRC_DIR}/Cython/Plex/Actions.c \ | ||
| 43 | ${PKGD}${TARGET_DBGSRC_DIR}/Cython/Plex/Scanners.c \ | ||
| 44 | ${PKGD}${TARGET_DBGSRC_DIR}/Cython/Runtime/refnanny.c \ | ||
| 45 | ${PKGD}${TARGET_DBGSRC_DIR}/Cython/Tempita/_tempita.c \ | ||
| 46 | ${PKGD}${libdir}/${PYTHON_DIR}/site-packages/Cython*/SOURCES.txt; do | ||
| 47 | if [ -e $f ]; then | ||
| 48 | sed -i -e 's#${WORKDIR}/Cython-${PV}#${TARGET_DBGSRC_DIR}#g' $f | ||
| 49 | fi | ||
| 50 | done | ||
| 51 | } | ||
| 52 | |||
| 53 | RDEPENDS:${PN}:class-target += "\ | ||
| 54 | python3-misc \ | ||
| 55 | python3-netserver \ | ||
| 56 | python3-pkgutil \ | ||
| 57 | python3-pyparsing \ | ||
| 58 | python3-setuptools \ | ||
| 59 | python3-shell \ | ||
| 60 | python3-xml \ | ||
| 61 | " | ||
| 62 | |||
| 63 | RDEPENDS:${PN}:class-nativesdk += "\ | ||
| 64 | nativesdk-python3-misc \ | ||
| 65 | nativesdk-python3-netserver \ | ||
| 66 | nativesdk-python3-pkgutil \ | ||
| 67 | nativesdk-python3-pyparsing \ | ||
| 68 | nativesdk-python3-setuptools \ | ||
| 69 | nativesdk-python3-shell \ | ||
| 70 | nativesdk-python3-xml \ | ||
| 71 | " | ||
| 72 | |||
| 73 | BBCLASSEXTEND = "native nativesdk" | ||
