system-config-printer: Delete __pycache__ files

These pyc files include references to buildtime TMPDIR, therefore delete
them and let them be regerated during runtime if needed.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2023-05-22 18:25:58 -07:00
parent da331ae8f1
commit b1b7ee87ac

View File

@ -21,6 +21,15 @@ do_configure:prepend() {
touch ${S}/ChangeLog
}
do_install:append() {
for f in __init__.cpython-311.pyc cupshelpers.cpython-311.pyc \
config.cpython-311.pyc ppds.cpython-311.pyc \
installdriver.cpython-311.pyc openprinting.cpython-311.pyc \
xmldriverprefs.cpython-311.pyc; do
rm -rf ${D}${PYTHON_SITEPACKAGES_DIR}/cupshelpers/__pycache__/$f
done
}
FILES:${PN} += "${libdir} ${datadir}"
RDEPENDS:${PN} = " \