mirror of
https://git.yoctoproject.org/poky
synced 2026-02-05 16:28:43 +01:00
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>
38 lines
1.2 KiB
BlitzBasic
38 lines
1.2 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}${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
|
|
}
|
|
|