mirror of
https://git.yoctoproject.org/poky
synced 2026-04-20 18:32:12 +02:00
python3-cython: upgrade 3.0.8 -> 3.0.9
Changelog:
===========
Features added
--------------
* Assigning "const" values to non-const variables now issues a warning.
* Using "noexcept" on a function returning Python objects now issues a warning.
* Some C-API usage was updated for the upcoming CPython 3.13.
* The deprecated "Py_UNICODE" type is no longer used, unless required by user code.
* "std::string.replace()" declarations were added to libcpp.string.
Bugs fixed
----------
* Cython generates incorrect (but harmless) self-casts when directly calling
final methods of subtypes. Lacking a better solution, the errors that recent
gcc versions produce have been silenced for the time being.
* Unused variable warnings about clineno were fixed when C lines in tracebacks are disabled.
* Subclass deallocation of extern classes could crash if the base class uses GC.
* Type checks for Python "memoryview" could use an invalid C function.
* Calling final fused functions could generate invalid C code.
* Declaring extern enums multiple times could generate invalid C code.
* "pyximport" used relative paths incorrectly.
* Running Cython with globbing characters ("[]*?") in the module search path could fail.
* Literal strings that include braces could change the C code indentation.
Other changes
-------------
* The "enum class not importable" warning is now only issued once per enum type.
(From OE-Core rev: 35a7d28d271d2f3e27cf24c2433c4e69c650509e)
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
051e5476e8
commit
934ad49020
37
meta/recipes-devtools/python/python3-cython_3.0.9.bb
Normal file
37
meta/recipes-devtools/python/python3-cython_3.0.9.bb
Normal file
@@ -0,0 +1,37 @@
|
||||
inherit setuptools3
|
||||
require python-cython.inc
|
||||
|
||||
RDEPENDS:${PN} += "\
|
||||
python3-setuptools \
|
||||
"
|
||||
|
||||
# running build_ext a second time during install fails, because Python
|
||||
# would then attempt to import cythonized modules built for the target
|
||||
# architecture.
|
||||
SETUPTOOLS_INSTALL_ARGS += "--skip-build"
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
PACKAGESPLITFUNCS =+ "cython_fix_sources"
|
||||
|
||||
cython_fix_sources () {
|
||||
for f in ${PKGD}${TARGET_DBGSRC_DIR}/Cython/Compiler/FlowControl.c \
|
||||
${PKGD}${TARGET_DBGSRC_DIR}/Cython/Compiler/FusedNode.c \
|
||||
${PKGD}${TARGET_DBGSRC_DIR}/Cython/Compiler/Scanning.c \
|
||||
${PKGD}${TARGET_DBGSRC_DIR}/Cython/Compiler/Visitor.c \
|
||||
${PKGD}${TARGET_DBGSRC_DIR}/Cython/Plex/Actions.c \
|
||||
${PKGD}${TARGET_DBGSRC_DIR}/Cython/Plex/Scanners.c \
|
||||
${PKGD}${TARGET_DBGSRC_DIR}/Cython/Runtime/refnanny.c \
|
||||
${PKGD}${TARGET_DBGSRC_DIR}/Cython/Tempita/_tempita.c \
|
||||
${PKGD}${libdir}/${PYTHON_DIR}/site-packages/Cython*/SOURCES.txt; do
|
||||
if [ -e $f ]; then
|
||||
sed -i -e 's#${WORKDIR}/Cython-${PV}#${TARGET_DBGSRC_DIR}#g' $f
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user