If ccache is enabled then HOSTTOOLS_DIR ends up in __config__.py, so
remove that path too.

Signed-off-by: Ross Burton <[email protected]>
---
 meta/recipes-devtools/python/python3-numpy_2.5.1.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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..e700222126d 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,12 @@ do_install:append() {
     sed -i \
         -e 's|${S}=||g' \
         -e 's|${B}=||g' \
+        -e 's|${HOSTTOOLS_DIR}||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' \
+        ${D}${PYTHON_SITEPACKAGES_DIR}/numpy/__config__.py
 
     nativepython3 -mcompileall -s ${D} 
${D}${PYTHON_SITEPACKAGES_DIR}/numpy/__config__.py
 }
-- 
2.43.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#243004): 
https://lists.openembedded.org/g/openembedded-core/message/243004
Mute This Topic: https://lists.openembedded.org/mt/120640522/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to