diff options
| author | Ross Burton <ross.burton@arm.com> | 2025-11-12 21:02:44 +0000 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-11-12 22:46:02 -0800 |
| commit | 9e97fa325f726d785bed4b32ba5966bdc23d7bce (patch) | |
| tree | 01e85c4926fffca7a54d8bd3785f018785207af7 | |
| parent | cf4755a60d71c9cd9a38e49fc7943dec76e00e5b (diff) | |
| download | meta-openembedded-9e97fa325f726d785bed4b32ba5966bdc23d7bce.tar.gz | |
gnome-tweaks: remove .pyc files with buildpaths embedded
The python "optimised" .pyc files contain buildpaths. Delete those and
leave the "unoptimised" .pyc files. The difference is very minor, mainly
that optimised bytecode doesn't contain any assert statements.
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-gnome/recipes-gnome/gnome-tweaks/gnome-tweaks_40.0.bb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meta-gnome/recipes-gnome/gnome-tweaks/gnome-tweaks_40.0.bb b/meta-gnome/recipes-gnome/gnome-tweaks/gnome-tweaks_40.0.bb index a8d6a2ad69..498d392e89 100644 --- a/meta-gnome/recipes-gnome/gnome-tweaks/gnome-tweaks_40.0.bb +++ b/meta-gnome/recipes-gnome/gnome-tweaks/gnome-tweaks_40.0.bb | |||
| @@ -25,6 +25,12 @@ SRC_URI += " \ | |||
| 25 | 25 | ||
| 26 | EXTRA_OEMESON = "-Dpython_site_dir=${PYTHON_SITEPACKAGES_DIR}" | 26 | EXTRA_OEMESON = "-Dpython_site_dir=${PYTHON_SITEPACKAGES_DIR}" |
| 27 | 27 | ||
| 28 | # The optimised .pyc files contain buildpaths, delete them and leave the | ||
| 29 | # normal ones to be packaged. | ||
| 30 | do_install:append() { | ||
| 31 | find ${D}${PYTHON_SITEPACKAGES_DIR} -name *.opt*.pyc -delete | ||
| 32 | } | ||
| 33 | |||
| 28 | FILES:${PN} += " \ | 34 | FILES:${PN} += " \ |
| 29 | ${datadir}/metainfo \ | 35 | ${datadir}/metainfo \ |
| 30 | ${PYTHON_SITEPACKAGES_DIR} \ | 36 | ${PYTHON_SITEPACKAGES_DIR} \ |
