From 2027a7a0da4e94389bb9c079beae094f82f555ef Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Tue, 3 Mar 2026 13:30:54 +0000 Subject: [PATCH] arm/python3-pydevicetree: don't install non-namespaced tests The wheel includes the tests which are in a non-namespaced module, and will then conflict with other recipes (such as python3-cryptography) that also install non-namespaced tests. Signed-off-by: Ross Burton Signed-off-by: Jon Mason --- .../recipes-devtools/python/python3-pydevicetree_0.0.13.bb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/meta-arm/recipes-devtools/python/python3-pydevicetree_0.0.13.bb b/meta-arm/recipes-devtools/python/python3-pydevicetree_0.0.13.bb index 7a1ba717..aeaf5f4f 100644 --- a/meta-arm/recipes-devtools/python/python3-pydevicetree_0.0.13.bb +++ b/meta-arm/recipes-devtools/python/python3-pydevicetree_0.0.13.bb @@ -7,4 +7,11 @@ inherit pypi setuptools3 SRC_URI[sha256sum] = "5700c05df89bad8fd729c11aa6f764a3323bcb3796f13b32481ae34445cfc1b7" +do_install:append() { + # This package installs test cases into an un-namespaced "tests" directory, + # remove it so it doesn't conflict with other recipes that do the same. + # https://github.com/sifive/pydevicetree/issues/57 + rm -rf ${D}/${PYTHON_SITEPACKAGES_DIR}/tests +} + BBCLASSEXTEND = "native nativesdk"