Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #106678

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

From Stefan Behnel <stefan_ml@behnel.de>
Newsgroups comp.lang.python
Subject Re: I'd like to add -march=native to my pip builds
Date 2016-04-08 15:38 +0200
Message-ID <mailman.82.1460122703.2253.python-list@python.org> (permalink)
References <ne8bk2$mrm$1@ger.gmane.org> <ne8c84$221$1@ger.gmane.org>

Show all headers | View raw


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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: I'd like to add -march=native to my pip builds Stefan Behnel <stefan_ml@behnel.de> - 2016-04-08 15:38 +0200

csiph-web