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

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
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 Fri, 8 Apr 2016 15:38:09 +0200
Lines 13
Message-ID <mailman.82.1460122703.2253.python-list@python.org> (permalink)
References <ne8bk2$mrm$1@ger.gmane.org> <ne8c84$221$1@ger.gmane.org>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 7bit
X-Trace news.uni-berlin.de 41At1h54rxbSC3xMPx5n0gmu7J5UOyxac0SyolWjxQpg==
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'binary': 0.05; 'compiler': 0.05; 'variable,': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'cflags': 0.16; 'from:addr:behnel.de': 0.16; 'from:addr:stefan_ml': 0.16; 'from:name:stefan behnel': 0.16; 'numpy': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'stefan': 0.18; 'all,': 0.20; 'header:In-Reply-To:1': 0.24; 'install': 0.25; 'header:User-Agent:1': 0.26; 'header:X -Complaints-To:1': 0.26; 'builds.': 0.29; 'environment': 0.29; 'e.g.': 0.30; "i'd": 0.31; 'source': 0.33; 'flags': 0.33; 'subject:like': 0.33; 'skip:- 10': 0.34; 'changing': 0.34; 'this?': 0.34; 'add': 0.34; 'should': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'sure': 0.39; 'enough': 0.39; 'to:addr:python.org': 0.40; 'received:de': 0.40; 'becker': 0.84; 'pip': 0.84; 'subject:add': 0.91
X-Injected-Via-Gmane http://gmane.org/
X-Gmane-NNTP-Posting-Host ipservice-092-211-041-222.092.211.pools.vodafone-ip.de
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0
In-Reply-To <ne8bk2$mrm$1@ger.gmane.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.21
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID <ne8c84$221$1@ger.gmane.org>
X-Mailman-Original-References <ne8bk2$mrm$1@ger.gmane.org>
Xref csiph.com comp.lang.python:106678

Show key headers only | 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