diff mbox series

[2/3] python3-numpy: remove HOSTTOOLS_DIR from __config__.py

Message ID 20260805113634.79174-2-ross.burton@arm.com
State Under Review
Headers show
Series [1/3] systemd: add missing libucontext dependency on musl | expand

Commit Message

Ross Burton Aug. 5, 2026, 11:36 a.m. UTC
If ccache is enabled then HOSTTOOLS_DIR ends up in __config__.py, so
remove that path too.

Also remove redundant entries: there's no need to remove both
${RECIPE_SYSROOT}= and ${RECIPE_SYSROOT}.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 meta/recipes-devtools/python/python3-numpy_2.5.1.bb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/meta/recipes-devtools/python/python3-numpy_2.5.1.bb b/meta/recipes-devtools/python/python3-numpy_2.5.1.bb
index 88786dc0168..d053cc56932 100644
--- a/meta/recipes-devtools/python/python3-numpy_2.5.1.bb
+++ b/meta/recipes-devtools/python/python3-numpy_2.5.1.bb
@@ -29,10 +29,10 @@  do_install:append() {
     sed -i \
         -e 's|${S}=||g' \
         -e 's|${B}=||g' \
-        -e 's|${RECIPE_SYSROOT_NATIVE}=||g' \
         -e 's|${RECIPE_SYSROOT_NATIVE}||g' \
-        -e 's|${RECIPE_SYSROOT}=||g' \
-        -e 's|${RECIPE_SYSROOT}||g' ${D}${PYTHON_SITEPACKAGES_DIR}/numpy/__config__.py
+        -e 's|${RECIPE_SYSROOT}||g' \
+        -e 's|${HOSTTOOLS_DIR}||g' \
+        ${D}${PYTHON_SITEPACKAGES_DIR}/numpy/__config__.py
 
     nativepython3 -mcompileall -s ${D} ${D}${PYTHON_SITEPACKAGES_DIR}/numpy/__config__.py
 }