mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
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>
This commit is contained in:
parent
cf4755a60d
commit
9e97fa325f
|
|
@ -25,6 +25,12 @@ SRC_URI += " \
|
||||||
|
|
||||||
EXTRA_OEMESON = "-Dpython_site_dir=${PYTHON_SITEPACKAGES_DIR}"
|
EXTRA_OEMESON = "-Dpython_site_dir=${PYTHON_SITEPACKAGES_DIR}"
|
||||||
|
|
||||||
|
# The optimised .pyc files contain buildpaths, delete them and leave the
|
||||||
|
# normal ones to be packaged.
|
||||||
|
do_install:append() {
|
||||||
|
find ${D}${PYTHON_SITEPACKAGES_DIR} -name *.opt*.pyc -delete
|
||||||
|
}
|
||||||
|
|
||||||
FILES:${PN} += " \
|
FILES:${PN} += " \
|
||||||
${datadir}/metainfo \
|
${datadir}/metainfo \
|
||||||
${PYTHON_SITEPACKAGES_DIR} \
|
${PYTHON_SITEPACKAGES_DIR} \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user