mirror of
https://git.yoctoproject.org/poky
synced 2026-02-06 16:56:37 +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>
46 lines
1.4 KiB
PHP
46 lines
1.4 KiB
PHP
SUMMARY = "The Cython language"
|
|
HOMEPAGE = "https://pypi.org/project/Cython/"
|
|
DESCRIPTION = "Cython is a language specially designed for writing Python extension modules. \
|
|
It's designed to bridge the gap between the nice, high-level, easy-to-use world of Python \
|
|
and the messy, low-level world of C."
|
|
SECTION = "devel/python"
|
|
LICENSE = "Apache-2.0"
|
|
LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=61c3ee8961575861fa86c7e62bc9f69c"
|
|
PYPI_PACKAGE = "Cython"
|
|
BBCLASSEXTEND = "native nativesdk"
|
|
|
|
SRC_URI[sha256sum] = "a2d354f059d1f055d34cfaa62c5b68bc78ac2ceab6407148d47fb508cf3ba4f3"
|
|
UPSTREAM_CHECK_REGEX = "Cython-(?P<pver>.*)\.tar"
|
|
|
|
inherit pypi
|
|
|
|
RDEPENDS:${PN}:class-target += "\
|
|
python3-misc \
|
|
python3-netserver \
|
|
python3-pkgutil \
|
|
python3-pyparsing \
|
|
python3-setuptools \
|
|
python3-shell \
|
|
python3-xml \
|
|
"
|
|
|
|
RDEPENDS:${PN}:class-nativesdk += "\
|
|
nativesdk-python3-misc \
|
|
nativesdk-python3-netserver \
|
|
nativesdk-python3-pkgutil \
|
|
nativesdk-python3-pyparsing \
|
|
nativesdk-python3-setuptools \
|
|
nativesdk-python3-shell \
|
|
nativesdk-python3-xml \
|
|
"
|
|
|
|
do_install:append() {
|
|
# Make sure we use /usr/bin/env python
|
|
for PYTHSCRIPT in `grep -rIl '^#!.*python' ${D}`; do
|
|
sed -i -e '1s|^#!.*|#!/usr/bin/env python3|' $PYTHSCRIPT
|
|
done
|
|
|
|
# remove build paths from generated sources
|
|
sed -i -e 's|${WORKDIR}||' ${S}/Cython/*.c ${S}/Cython/Compiler/*.c ${S}/Cython/Plex/*.c
|
|
}
|