python3-sphinx: Make __pycache__ removal optional
PATCH 1/1 python3-sphinx: Make __pycache__ removal optional
One can disable bytecode compilation via INSTALL_WHEEL_COMPILE_BYTECODE and in such case this rm will fail.
Signed-off-by Michal Sieron <[email protected]>
--- meta/recipes-devtools/python/python3-sphinx_9.2.0.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/python/python3-sphinx_9.2.0.bb +1 -1
@@ -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,
Signature · 1 line
Michal Sieron <[email protected]>