[meta-python] python3-pyserial: also remove /usr/bin/__pycache__

Message ID 20220226022108.1334703-1-tim.orling@konsulko.com
State New
Headers show
Series [meta-python] python3-pyserial: also remove /usr/bin/__pycache__ | expand

Commit Message

Tim Orling Feb. 26, 2022, 2:21 a.m. UTC
PEP-517 packaging tries to also ship ${bindir}/__pycache__,
since we are removing all the scripts from ${bindir}, remove the cache
as well.

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
---
 meta-python/recipes-devtools/python/python3-pyserial_3.5.bb | 1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/meta-python/recipes-devtools/python/python3-pyserial_3.5.bb b/meta-python/recipes-devtools/python/python3-pyserial_3.5.bb
index 4766d92266..15646235df 100644
--- a/meta-python/recipes-devtools/python/python3-pyserial_3.5.bb
+++ b/meta-python/recipes-devtools/python/python3-pyserial_3.5.bb
@@ -9,6 +9,7 @@  inherit pypi setuptools3 ptest
 do_install:append() {
     rm -f ${D}${bindir}/pyserial-miniterm
     rm -f ${D}${bindir}/pyserial-ports
+    rm -rf ${D}${bindir}/__pycache__
     rmdir ${D}${bindir}
 }