diff options
| author | Wang Mingyu <wangmy@fujitsu.com> | 2023-01-15 13:24:06 +0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-01-16 10:42:07 +0000 |
| commit | 034223db3b13d9cb1d59af24426da3f21b46d641 (patch) | |
| tree | 8f16284db1398abab79af5d250bd6da50bfc3b58 /meta/recipes-devtools/python/python3-cython_0.29.32.bb | |
| parent | e5f159c0e3b59d04cff3fe86c39e04a79354fe21 (diff) | |
| download | poky-034223db3b13d9cb1d59af24426da3f21b46d641.tar.gz | |
python3-cython: upgrade 0.29.32 -> 0.29.33
Changelog:
==========
Features added
--------------
* The "cythonize" and "cython" commands have a new option "-M" / "--depfile"
to generate ".dep" dependency files for the compilation unit. This can be used
by external build tools to track these dependencies.
The "cythonize" option was already available in Cython :ref:'0.29.27'.
Bugs fixed
----------
* "const" fused types could not be used with memory views.
Patch by Thomas Vincent. (Github issue :issue:'1772')
* "wstr" usage was removed in Python 3.12 and later (PEP-623).
(Github issue :issue:'5145')
* A type check assertion for Cython functions failed in debug Python builds.
(Github issue :issue:'5031')
* Fixed various compiler warnings.
Patches by Lisandro Dalcin et al. (Github issues :issue:'4948', :issue:'5086')
* Fixed error when calculating complex powers of negative numbers.
(Github issue :issue:'5014')
* Corrected a small mis-formatting of exception messages on Python 2.
(Github issue :issue:'5018')
* The "PyUnicode_AsUTF8AndSize()" C-API function was missing from the CPython declarations.
(Github issue :issue:'5163')
* A performance problem in the compiler was resolved when nesting conditional expressions.
(Github issue :issue:'5197')
* Test suite problems with recent NumPy and CPython versions were resolved.
(Github issues :issue:'5183', :issue:'5190')
Other changes
-------------
* The undocumented, untested and apparently useless syntax
"from somemodule cimport class/struct/union somename" was deprecated
in anticipation of its removal in Cython 3. The type
modifier is not needed here and a plain "cimport" of the name will do.
(Github issue :issue:'4905')
* Properly disable generation of descriptor docstrings on PyPy since they cause crashes.
It was previously disabled, but only accidentally via a typo.
Patch by Matti Picus. (Github issue :issue:'5083')
* The "cpow" directive of Cython 3.0 is available as a no-op.
(Github issue :issue:'5016')
(From OE-Core rev: 4c5b05d92d691447d493ce87f32f4af907410c39)
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python/python3-cython_0.29.32.bb')
| -rw-r--r-- | meta/recipes-devtools/python/python3-cython_0.29.32.bb | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/meta/recipes-devtools/python/python3-cython_0.29.32.bb b/meta/recipes-devtools/python/python3-cython_0.29.32.bb deleted file mode 100644 index 78be2b94ed..0000000000 --- a/meta/recipes-devtools/python/python3-cython_0.29.32.bb +++ /dev/null | |||
| @@ -1,37 +0,0 @@ | |||
| 1 | inherit setuptools3 | ||
| 2 | require python-cython.inc | ||
| 3 | |||
| 4 | RDEPENDS:${PN} += "\ | ||
| 5 | python3-setuptools \ | ||
| 6 | " | ||
| 7 | |||
| 8 | # running build_ext a second time during install fails, because Python | ||
| 9 | # would then attempt to import cythonized modules built for the target | ||
| 10 | # architecture. | ||
| 11 | SETUPTOOLS_INSTALL_ARGS += "--skip-build" | ||
| 12 | |||
| 13 | do_install:append() { | ||
| 14 | # rename scripts that would conflict with the Python 2 build of Cython | ||
| 15 | mv ${D}${bindir}/cython ${D}${bindir}/cython3 | ||
| 16 | mv ${D}${bindir}/cythonize ${D}${bindir}/cythonize3 | ||
| 17 | mv ${D}${bindir}/cygdb ${D}${bindir}/cygdb3 | ||
| 18 | } | ||
| 19 | |||
| 20 | PACKAGESPLITFUNCS =+ "cython_fix_sources" | ||
| 21 | |||
| 22 | cython_fix_sources () { | ||
| 23 | for f in ${PKGD}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}/Cython/Compiler/FlowControl.c \ | ||
| 24 | ${PKGD}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}/Cython/Compiler/FusedNode.c \ | ||
| 25 | ${PKGD}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}/Cython/Compiler/Scanning.c \ | ||
| 26 | ${PKGD}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}/Cython/Compiler/Visitor.c \ | ||
| 27 | ${PKGD}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}/Cython/Plex/Actions.c \ | ||
| 28 | ${PKGD}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}/Cython/Plex/Scanners.c \ | ||
| 29 | ${PKGD}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}/Cython/Runtime/refnanny.c \ | ||
| 30 | ${PKGD}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}/Cython/Tempita/_tempita.c \ | ||
| 31 | ${PKGD}${libdir}/${PYTHON_DIR}/site-packages/Cython*/SOURCES.txt; do | ||
| 32 | if [ -e $f ]; then | ||
| 33 | sed -i -e 's#${WORKDIR}/Cython-${PV}#/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}#g' $f | ||
| 34 | fi | ||
| 35 | done | ||
| 36 | } | ||
| 37 | |||
