From 247ed1a843973436549ab6df0c2c052938042fe6 Mon Sep 17 00:00:00 2001 From: Thomas Roos Date: Sun, 8 Nov 2026 20:25:45 +0100 Subject: [PATCH] python3-pint: add missing runtime dependencies pint requires flexcache, flexparser and typing-extensions, but only the ptest package pulled in flexcache and flexparser, so "import pint" fails with "No module named 'flexcache'" on an image without the ptest. pint is extended to native and nativesdk, so flexcache and flexparser are as well. AI-Generated: Claude Code, Claude Opus 5.5 Signed-off-by: Thomas Roos Signed-off-by: Khem Raj --- meta-python/recipes-devtools/python/python3-flexcache_0.3.bb | 2 ++ .../recipes-devtools/python/python3-flexparser_0.4.bb | 2 ++ meta-python/recipes-devtools/python/python3-pint_0.26.2.bb | 5 +++-- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/meta-python/recipes-devtools/python/python3-flexcache_0.3.bb b/meta-python/recipes-devtools/python/python3-flexcache_0.3.bb index d46f9eb16f..efdeaabf1b 100644 --- a/meta-python/recipes-devtools/python/python3-flexcache_0.3.bb +++ b/meta-python/recipes-devtools/python/python3-flexcache_0.3.bb @@ -18,3 +18,5 @@ RDEPENDS:${PN} += " \ python3-pickle \ python3-typing-extensions \ " + +BBCLASSEXTEND = "native nativesdk" diff --git a/meta-python/recipes-devtools/python/python3-flexparser_0.4.bb b/meta-python/recipes-devtools/python/python3-flexparser_0.4.bb index e4e15d1a35..7ab1c713f9 100644 --- a/meta-python/recipes-devtools/python/python3-flexparser_0.4.bb +++ b/meta-python/recipes-devtools/python/python3-flexparser_0.4.bb @@ -18,3 +18,5 @@ RDEPENDS:${PN} += " \ python3-email \ python3-logging \ " + +BBCLASSEXTEND = "native nativesdk" diff --git a/meta-python/recipes-devtools/python/python3-pint_0.26.2.bb b/meta-python/recipes-devtools/python/python3-pint_0.26.2.bb index f370da6a57..dba437a0dd 100644 --- a/meta-python/recipes-devtools/python/python3-pint_0.26.2.bb +++ b/meta-python/recipes-devtools/python/python3-pint_0.26.2.bb @@ -17,15 +17,16 @@ BBCLASSEXTEND = "native nativesdk" PTEST_PYTEST_DIR = "pint" RDEPENDS:${PN} += " \ + python3-flexcache \ + python3-flexparser \ python3-packaging \ python3-platformdirs \ + python3-typing-extensions \ " # python3-misc for timeit.py RDEPENDS:${PN}-ptest += " \ python3-appdirs \ python3-attrs \ - python3-flexcache \ - python3-flexparser \ python3-misc \ python3-pytest-benchmark \ python3-pytest-subtests \