[Numpy-discussion] Numpy on Mac OS X python 2.6
Tue Nov 25 09:03:29 CST 2008
On Tue, Nov 25, 2008 at 10:55 PM, David Cournapeau
> 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:
So some people thought about the same problem.
More information about the Numpy-discussion