Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] python3-sphinx: Make __pycache__ removal optional
@ 2026-11-13 15:03 Michal Sieron
  0 siblings, 0 replies; only message in thread
From: Michal Sieron @ 2026-11-13 15:03 UTC (permalink / raw)
  To: openembedded-core; +Cc: Michal Sieron

One can disable bytecode compilation via INSTALL_WHEEL_COMPILE_BYTECODE
and in such case this rm will fail.

Signed-off-by: Michal Sieron <michal.sieron@nokia.com>
---
 meta/recipes-devtools/python/python3-sphinx_9.2.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/python/python3-sphinx_9.2.0.bb b/meta/recipes-devtools/python/python3-sphinx_9.2.0.bb
index e54b35ca68..fde0777022 100644
--- a/meta/recipes-devtools/python/python3-sphinx_9.2.0.bb
+++ b/meta/recipes-devtools/python/python3-sphinx_9.2.0.bb
@@ -12,7 +12,7 @@ inherit python_flit_core pypi
 
 do_install:append () {
 	# The cache format of "{None, 'en', 'ja'}" doesn't seem to be consistent (dict ordering?)
-	rm ${D}${libdir}/${PYTHON_DIR}/site-packages/sphinx/writers/__pycache__/*latex*
+	rm -f ${D}${libdir}/${PYTHON_DIR}/site-packages/sphinx/writers/__pycache__/*latex*
 }
 
 RDEPENDS:${PN} = "\

---
base-commit: 34991d0ce3cc5f38dd29e824af7579512d2b917e
change-id: 20261113-msieron-python-sphinx-pycache-b20648bacafc

Best regards,
--  
Michal Sieron <michal.sieron@nokia.com>


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-13 15:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-13 15:03 [PATCH] python3-sphinx: Make __pycache__ removal optional Michal Sieron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox