I'd like to add -march=native to my pip builds

Stefan Behnel stefan_ml at behnel.de
Fri Apr 8 09:38:09 EDT 2016


Neal Becker schrieb am 08.04.2016 um 15:27:
> I'd like to add -march=native to my pip builds.  How can I do this?

First of all, make sure you don't install binary packages and wheels.
Changing the C compiler flags will require source builds.

Then, it should be enough to set the CFLAGS environment variable, e.g.

  CFLAGS="-O3 -march=native"  pip install  --no-use-wheel  numpy

Stefan





More information about the Python-list mailing list