mirror of
https://git.yoctoproject.org/poky
synced 2026-02-05 16:28:43 +01:00
Changelog: ========== * A garbage collection enabled subtype of a non-GC extension type could call into the deallocation function of the super type with GC tracking enabled. This could lead to crashes during deallocation if GC was triggered on the type at the same time. (Github issue :issue:'5432') * Some C compile failures and crashes in CPython 3.12 were resolved. * "except + nogil" was syntactically not allowed. "except +nogil" (i.e. defining a C++ exception handling function called "nogil") is now disallowed to prevent typos. (Github issue :issue:'5430') * A C compile failure in PyPy 3.10 was resolved. Patch by Matti Picus. (Github issue :issue:'5408') * Cython modules now use PEP-489 multi-phase init by default in PyPy 3.9 and later. Original patch by Matti Picus. (Github issue :issue:'5413') * API header files generated by different Cython versions can now be included in the same C file. (Github issue :issue:'5383') * Function signatures containing a type like 'tuple[()]' could not be printed. Patch by Lisandro Dalcin. (Github issue :issue:'5355') (From OE-Core rev: 73a1e908048374d6873497beacab9ae26b258332) Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
38 lines
1.4 KiB
BlitzBasic
38 lines
1.4 KiB
BlitzBasic
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}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}/Cython/Compiler/FlowControl.c \
|
|
${PKGD}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}/Cython/Compiler/FusedNode.c \
|
|
${PKGD}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}/Cython/Compiler/Scanning.c \
|
|
${PKGD}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}/Cython/Compiler/Visitor.c \
|
|
${PKGD}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}/Cython/Plex/Actions.c \
|
|
${PKGD}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}/Cython/Plex/Scanners.c \
|
|
${PKGD}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}/Cython/Runtime/refnanny.c \
|
|
${PKGD}/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}/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}#/usr/src/debug/${PN}/${EXTENDPE}${PV}-${PR}#g' $f
|
|
fi
|
|
done
|
|
}
|
|
|