| Message ID | 20260303133054.3311741-1-ross.burton@arm.com |
|---|---|
| State | New |
| Headers | show |
| Series | arm/python3-pydevicetree: don't install non-namespaced tests | expand |
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 7a1ba71730..aeaf5f4fcb 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"
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 <ross.burton@arm.com> --- .../recipes-devtools/python/python3-pydevicetree_0.0.13.bb | 7 +++++++ 1 file changed, 7 insertions(+)