<br><br><div class="gmail_quote">On Mon, Dec 22, 2008 at 10:40 PM, David Cournapeau <span dir="ltr"><<a href="mailto:cournape@gmail.com">cournape@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Tue, Dec 23, 2008 at 2:35 PM, Robert Kern <<a href="mailto:robert.kern@gmail.com">robert.kern@gmail.com</a>> wrote:<br>
<br>
><br>
> I think he meant that it can be discovered at runtime in general, not<br>
> at numpy-run-time, so we can write a small C program that can be run<br>
> at numpy-build-time to add another entry to config.h.<br>
<br>
</div>But then we only move the problem: people who want to build universal<br>
numpy extensions will have the wrong value, no ? The fundamental point<br>
of my patch is that the value is set whenever ndarrayobject.h is<br>
included. So even if I build numpy on PPC, NPY_BIGENDIAN will not be<br>
defined when the header is included for a file build with gcc -arch<br>
i386.<br>
<font color="#888888"></font></blockquote><div><br>We can probably set things up so the determination is at run time -- but we need to be sure that the ABI isn't affected. I did that once for an old project that needed data portability. In any case, it sounds like a project for a later release.<br>
<br>Chuck<br></div></div><br>