Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Ross Burton <ross.burton@arm.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH v2 2/2] python3-numpy: remove HOSTTOOLS_DIR from __config__.py
Date: Fri,  7 Aug 2026 11:35:40 +0100	[thread overview]
Message-ID: <20260807103540.3404860-2-ross.burton@arm.com> (raw)
In-Reply-To: <20260807103540.3404860-1-ross.burton@arm.com>

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

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 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



      reply	other threads:[~2026-08-07 10:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-07 10:35 [PATCH v2 1/2] systemd: add missing libucontext dependency on musl Ross Burton
2026-08-07 10:35 ` Ross Burton [this message]

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=20260807103540.3404860-2-ross.burton@arm.com \
    --to=ross.burton@arm.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