[Numpy-discussion] ANN: NumPy 1.7.0 release

Dag Sverre Seljebotn d.s.seljebotn at astro.uio.no
Sun Feb 10 06:00:22 EST 2013


On 02/10/2013 11:58 AM, Dag Sverre Seljebotn wrote:
> On 02/10/2013 03:36 AM, Neal Becker wrote:
>> Is there a way to add '-march=native' flag to gcc for the build?
>
> I think something along these lines should work (untested):
>
> CFLAGS="$(python-config --cflags) -march=native" python setup.py install

Actually I retract this -- it's what I once did for a Cython project, 
but numpy.distutils is doing so much in addition I can't be sure at all.

(Until somebody gives the correct answer, you could also try to set the 
"OPT" environment variable.)

Dag Sverre



More information about the NumPy-Discussion mailing list