mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-01-12 03:24:08 +00:00
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:
@@ -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} = " \
|
||||
|
||||
Reference in New Issue
Block a user