Patchwork [meta-oe] python-numpy 1.4.1: update hack to find the new location for python-native

login
register
mail settings
Submitter Koen Kooi
Date Oct. 5, 2012, 10:02 a.m.
Message ID <1349431340-8045-1-git-send-email-koen@dominion.thruhere.net>
Download mbox | patch
Permalink /patch/37805/
State Accepted
Commit 96fb528a77b352fc004f058849713bf7b1026e42
Headers show

Comments

Koen Kooi - Oct. 5, 2012, 10:02 a.m.
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
---
 meta-oe/recipes-devtools/python/python-numpy_1.4.1.bb |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Martin Jansa - Oct. 5, 2012, 10:06 a.m.
On Fri, Oct 05, 2012 at 12:02:20PM +0200, Koen Kooi wrote:
> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
> ---
>  meta-oe/recipes-devtools/python/python-numpy_1.4.1.bb |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta-oe/recipes-devtools/python/python-numpy_1.4.1.bb b/meta-oe/recipes-devtools/python/python-numpy_1.4.1.bb
> index c1923f7..bb4e78a 100644
> --- a/meta-oe/recipes-devtools/python/python-numpy_1.4.1.bb
> +++ b/meta-oe/recipes-devtools/python/python-numpy_1.4.1.bb
> @@ -24,7 +24,7 @@ inherit distutils
>  # This is a ugly, ugly hack - Koen
>  do_compile_prepend() {
>           BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
> -         ${STAGING_BINDIR_NATIVE}/python setup.py build ${DISTUTILS_BUILD_ARGS} || \
> +         ${STAGING_BINDIR_NATIVE}/python-native/python setup.py build ${DISTUTILS_BUILD_ARGS} || \

does it work if you inherit pythonnative and call python without path?

Cheers,

>           true
>  	 cp ${WORKDIR}/*config.h ${S}/build/$(ls ${S}/build | grep src)/numpy/core/include/numpy/
>  }
> -- 
> 1.7.10
> 
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Patch

diff --git a/meta-oe/recipes-devtools/python/python-numpy_1.4.1.bb b/meta-oe/recipes-devtools/python/python-numpy_1.4.1.bb
index c1923f7..bb4e78a 100644
--- a/meta-oe/recipes-devtools/python/python-numpy_1.4.1.bb
+++ b/meta-oe/recipes-devtools/python/python-numpy_1.4.1.bb
@@ -24,7 +24,7 @@  inherit distutils
 # This is a ugly, ugly hack - Koen
 do_compile_prepend() {
          BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
-         ${STAGING_BINDIR_NATIVE}/python setup.py build ${DISTUTILS_BUILD_ARGS} || \
+         ${STAGING_BINDIR_NATIVE}/python-native/python setup.py build ${DISTUTILS_BUILD_ARGS} || \
          true
 	 cp ${WORKDIR}/*config.h ${S}/build/$(ls ${S}/build | grep src)/numpy/core/include/numpy/
 }