[Numpy-discussion] CROSS-COMPILING NUMPY

David Cournapeau david@ar.media.kyoto-u.ac...
Sun Feb 15 01:30:41 CST 2009


Yepez, Esteban wrote:
> Hello,
>  
> I have having a hard time finding more information to help me, so I
> thought I'd ping you both.
>  
> I need to x-compile numpy for a new processor. I have a toolchain, and
> have x-compiled python2.5.4, boost1.37,swig1.38. I just can't figure
> out how to x-compile numpy. Now I had to play many tricks to get
> python configured, so I may not have everything I need:
> For python,
> - I modified the Modules/Setup to build math and other modules that my
> target doesn't have
> - I modified configure so that it wouldn't crash when trying to run
> test programs
> - I modified the makefile so it would not try to build sharedmods
>  
> Since Numpy uses python: python setup.py install, I figured that I
> could just use the host python to perform the build:
> >CC=my-gcc-compiler /usr/local/bin/python setup.py install

To put it simply, the build process in numpy does not support
cross-compilation at all, so you are mostly on your own, unfortunately,

David


More information about the Numpy-discussion mailing list