Re: [Numpy-discussion] ANN: NumPy 1.7.0 release

2013-02-10 Thread Dag Sverre Seljebotn
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

Dag Sverre
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] ANN: NumPy 1.7.0 release

2013-02-10 Thread Dag Sverre Seljebotn
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
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] ANN: NumPy 1.7.0 release

2013-02-09 Thread Neal Becker
Is there a way to add '-march=native' flag to gcc for the build?

___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion