[Numpy-discussion] Numpy on Mac OS X python 2.6

Charles R Harris charlesr.harris@gmail....
Tue Nov 25 09:59:32 CST 2008


On Tue, Nov 25, 2008 at 8:03 AM, David Cournapeau <cournape@gmail.com>wrote:

> On Tue, Nov 25, 2008 at 10:55 PM, David Cournapeau
> <david@ar.media.kyoto-u.ac.jp> wrote:
>
> >
> > I used the path of least resistance: instead of using the
> > WORDS_BIGENDIAN macro, I added a numpy header which gives the endianness
> > every time it is included. IOW, instead of the endianness to be fixed at
> > numpy build time (which would fail for universal builds), it is set
> > everytime the numpy headers are included (which is the only way to make
> > it work). A better solution IMO would be to avoid any endianness
> > dependency at all in the headers, but that does not seem possible
> > without breaking the API (because the endianness-related macro
> > PyArray_NBO and co would need to be set as functions instead).
>
> Hm, for reference, I came across this:
>
> http://www.mail-archive.com/python-dev@python.org/msg14382.html
>
> So some people thought about the same problem.
>

Apart from the Mac, the ppc can be configured to run either bigendian or
littleendian, so the hardware encompasses more than just the cpu, it's the
whole darn board.

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20081125/0f275a02/attachment.html 


More information about the Numpy-discussion mailing list