The source generation in numpy appears to be fragile and silently fails
when an out-of-tree build is done with setuptools.  The result is that
importing the numpy library results in failing linkage.

We should move numpy to build with mesonpy, but until that is done we
can simply reset B to be at the default location under the source tree.

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

diff --git a/meta/recipes-devtools/python/python3-numpy_1.26.4.bb 
b/meta/recipes-devtools/python/python3-numpy_1.26.4.bb
index 914245507c7..4ffbe0d3708 100644
--- a/meta/recipes-devtools/python/python3-numpy_1.26.4.bb
+++ b/meta/recipes-devtools/python/python3-numpy_1.26.4.bb
@@ -23,6 +23,9 @@ DEPENDS += "python3-cython-native"
 inherit ptest setuptools3 github-releases
 
 S = "${WORKDIR}/numpy-${PV}"
+# numpy built with setuptools fails to build correctly when out-of-tree, so
+# until we switch to mesonpy we need this.
+B = "${S}/build"
 
 CLEANBROKEN = "1"
 
-- 
2.34.1

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

Reply via email to