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


Groups > comp.lang.python > #106678 > unrolled thread

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

Started byStefan Behnel <stefan_ml@behnel.de>
First post2016-04-08 15:38 +0200
Last post2016-04-08 15:38 +0200
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

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

FromStefan Behnel <stefan_ml@behnel.de>
Date2016-04-08 15:38 +0200
SubjectRe: I'd like to add -march=native to my pip builds
Message-ID<mailman.82.1460122703.2253.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web