Files
meta-openembedded/meta-python/recipes-devtools/python/python3-pytokens_0.4.1.bb
T
Khem Raj a68043a045 python3-pytokens: Fix mypyc build with Python 3.15
pytokens is compiled with mypyc, which builds its runtime with -Werror.
The mypy 1.17 runtime (misc_ops.c and friends) uses _Py_IDENTIFIER,
_PyUnicode_FromId and _PyObject_GetAttrId, which Python 3.15 marks
deprecated, so the build fails with 19 -Wdeprecated-declarations
errors. mypy 1.20 dropped these calls, but upgrading needs new librt
and ast-serialize recipes. Downgrade the warning from an error until
then; the APIs are still present in 3.15.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-11-20 00:09:38 -08:00

16 lines
460 B
BlitzBasic

SUMMARY = "A Fast, spec compliant Python 3.14+ tokenizer that runs on older Pythons."
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=627dc9a75d5dcc4759b26bacf13a4c46"
inherit pypi python_setuptools_build_meta
DEPENDS += "python3-wheel-native"
SRC_URI[sha256sum] = "292052fe80923aae2260c073f822ceba21f3872ced9a68bb7953b348e561179a"
DEPENDS += "python3-mypy-native"
CFLAGS += "-Wno-error=deprecated-declarations"
BBCLASSEXTEND = "native nativesdk"