From 1b8b3716c5260b2713fe8f5773665b0ff3d90b5b Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Mon, 18 Nov 2013 15:40:20 +0000 Subject: [PATCH] python-numpy: add native support The compile hack to use a correct config.h isn't needed for native builds, so mark it as target-specific. (From meta-openembedded rev: c13c5f40160d289bb62538a16900fed30621cb22) Signed-off-by: Ross Burton Signed-off-by: Martin Jansa Signed-off-by: Patrick Ohly --- .../meta-oe/recipes-devtools/python/python-numpy_1.7.0.bb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meta-openembedded/meta-oe/recipes-devtools/python/python-numpy_1.7.0.bb b/meta-openembedded/meta-oe/recipes-devtools/python/python-numpy_1.7.0.bb index e6d328f..04cb2f1 100644 --- a/meta-openembedded/meta-oe/recipes-devtools/python/python-numpy_1.7.0.bb +++ b/meta-openembedded/meta-oe/recipes-devtools/python/python-numpy_1.7.0.bb @@ -40,7 +40,7 @@ inherit distutils # Make the build fail and replace *config.h with proper one # This is a ugly, ugly hack - Koen -do_compile_prepend() { +do_compile_prepend_class-target() { BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \ ${STAGING_BINDIR_NATIVE}/python-native/python setup.py build ${DISTUTILS_BUILD_ARGS} || \ true @@ -72,3 +72,7 @@ RDEPENDS_${PN} = "python-unittest \ python-subprocess \ python-compression \ " + +RDEPENDS_${PN}_class-native = "" + +BBCLASSEXTEND = "native nativesdk" -- 2.7.4