diff options
author | Khem Raj <raj.khem@gmail.com> | 2023-05-22 18:25:58 -0700 |
---|---|---|
committer | Armin Kuster <akuster808@gmail.com> | 2023-06-17 13:05:55 -0400 |
commit | 7649dfaedf9f56b63b93dbf0d08fc3fedf2b79b2 (patch) | |
tree | 3951df89e4ae7d6ac1727cc8abf3510e17fec925 | |
parent | e394c5d39dd03e25079d4db35c8174112d087ac8 (diff) | |
download | meta-openembedded-7649dfaedf9f56b63b93dbf0d08fc3fedf2b79b2.tar.gz |
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>
(cherry picked from commit b1b7ee87ac55fced4bcf88b0e374025d7f908731)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r-- | meta-networking/dynamic-layers/meta-python/recipes-printing/system-config-printer/system-config-printer_1.5.18.bb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/meta-networking/dynamic-layers/meta-python/recipes-printing/system-config-printer/system-config-printer_1.5.18.bb b/meta-networking/dynamic-layers/meta-python/recipes-printing/system-config-printer/system-config-printer_1.5.18.bb index 883d582371..f0ff24f376 100644 --- a/meta-networking/dynamic-layers/meta-python/recipes-printing/system-config-printer/system-config-printer_1.5.18.bb +++ b/meta-networking/dynamic-layers/meta-python/recipes-printing/system-config-printer/system-config-printer_1.5.18.bb | |||
@@ -21,6 +21,15 @@ do_configure:prepend() { | |||
21 | touch ${S}/ChangeLog | 21 | touch ${S}/ChangeLog |
22 | } | 22 | } |
23 | 23 | ||
24 | do_install:append() { | ||
25 | for f in __init__.cpython-311.pyc cupshelpers.cpython-311.pyc \ | ||
26 | config.cpython-311.pyc ppds.cpython-311.pyc \ | ||
27 | installdriver.cpython-311.pyc openprinting.cpython-311.pyc \ | ||
28 | xmldriverprefs.cpython-311.pyc; do | ||
29 | rm -rf ${D}${PYTHON_SITEPACKAGES_DIR}/cupshelpers/__pycache__/$f | ||
30 | done | ||
31 | } | ||
32 | |||
24 | FILES:${PN} += "${libdir} ${datadir}" | 33 | FILES:${PN} += "${libdir} ${datadir}" |
25 | 34 | ||
26 | RDEPENDS:${PN} = " \ | 35 | RDEPENDS:${PN} = " \ |