Skip to contentSkip to conversation

python3-pyserial: also remove /usr/bin/__pycache__

PATCH New Tim Orling 1 participant 1 message Feb 26, 2022

lore
Share & tools
lore

Tim Orling

author
#0 lore raw

PATCH 1/1 python3-pyserial: also remove /usr/bin/__pycache__

PEP-517 packaging tries to also ship ${bindir}/__pycache__, since we are removing all the scripts from ${bindir}, remove the cache as well.

---
 meta-python/recipes-devtools/python/python3-pyserial_3.5.bb | 1 +
 1 file changed, 1 insertion(+)
meta-python/recipes-devtools/python/python3-pyserial_3.5.bb +1 -0
index 4766d92266..15646235df 100644
@@ -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}
 }
 
Signature · 1 line
2.30.2