Skip to contentSkip to conversation

meson: don't fail if no .pyc exists

PATCH New [email protected] 1 participant 1 message Sep 6, 2023 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 meson: don't fail if no .pyc exists

From: Yang Xu <[email protected]>

If PYTHONDONTWRITEBYTECODE set to 1, do_install:append will fail because no .pyc is removed.

Add -f flag to prevent command fail.

---
 meta/recipes-devtools/meson/meson_1.1.1.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/meson/meson_1.1.1.bb +1 -1
index 500e13775f..dd97f93aef 100644
@@ -30,7 +30,7 @@ do_install:append () {
 	# Upstream is discussing ways to solve the issue properly, until then let's
 	# just not install the problematic files.
 	# More info: http://benno.id.au/blog/2013/01/15/python-determinism
-	rm ${D}${libdir}/python*/site-packages/mesonbuild/dependencies/__pycache__/mpi.cpython*
+	rm -f ${D}${libdir}/python*/site-packages/mesonbuild/dependencies/__pycache__/mpi.cpython*
 }
 
 BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.25.1