Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Michal Sieron <michalwsieron@gmail.com>
To: openembedded-core@lists.openembedded.org
Cc: Michal Sieron <michal.sieron@nokia.com>
Subject: [PATCH] python3-sphinx: Make __pycache__ removal optional
Date: Fri, 13 Nov 2026 16:03:04 +0100	[thread overview]
Message-ID: <20261113-msieron-python-sphinx-pycache-v1-1-7e641cba892f@nokia.com> (raw)

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>


                 reply	other threads:[~2026-11-13 15:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261113-msieron-python-sphinx-pycache-v1-1-7e641cba892f@nokia.com \
    --to=michalwsieron@gmail.com \
    --cc=michal.sieron@nokia.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox