diff mbox series

[v2,3/8] python3-numpy: don't do out-of-tree builds

Message ID 20241107172404.4017047-3-ross.burton@arm.com
State New
Headers show
Series [v2,1/8] python3-setuptools: add more comments to a patch | expand

Commit Message

Ross Burton Nov. 7, 2024, 5:23 p.m. UTC
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 <ross.burton@arm.com>
---
 meta/recipes-devtools/python/python3-numpy_1.26.4.bb | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

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"