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


Groups > comp.lang.python > #80108

Re: Build Question: How to Add -Wl, --option Before Objects In Setup.py?

Path csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
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.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'python,': 0.02; 'broken': 0.04; 'interpreter.': 0.07; 'subject:Question': 0.07; '(instead': 0.09; 'makefile': 0.09; 'objects,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:How': 0.10; 'python': 0.11; 'luck!': 0.16; 'possible?': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:Add': 0.16; 'sat,': 0.16; 'fix': 0.17; 'wrote:': 0.18; 'library': 0.18; 'bit': 0.19; 'hacking': 0.19; 'not,': 0.20; 'help.': 0.21; 'tests': 0.22; 'header:User-Agent:1': 0.23; 'math': 0.24; 'looks': 0.24; 'header:X-Complaints-To:1': 0.27; '(like': 0.30; 'primarily': 0.30; 'code': 0.31; 'easier': 0.31; 'disable': 0.31; 'figure': 0.32; 'sources': 0.33; 'comment': 0.34; 'core': 0.34; 'could': 0.34; 'but': 0.35; 'building': 0.35; 'there': 0.35; 'really': 0.36; 'doing': 0.36; 'shows': 0.36; 'charset:us-ascii': 0.36; "i'll": 0.36; 'subject:?': 0.36; 'should': 0.36; 'so,': 0.37; 'project': 0.37; 'expected': 0.38; 'nov': 0.38; 'needed': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'rather': 0.38; 'support,': 0.39; 'sure': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'days': 0.60; 'even': 0.60; 'skip:u 10': 0.60; 'then,': 0.60; 'places': 0.64; 'more': 0.64; 'subject:Build': 0.68; 'system)': 0.69; 'received:204': 0.75; 'article': 0.77; '../configure': 0.84; 'android.': 0.84; 'received:204.14': 0.84; 'old,': 0.85; '1:47': 0.91; 'device.': 0.93
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Ned Deily <nad@acm.org>
Subject Re: Build Question: How to Add -Wl, --option Before Objects In Setup.py?
Date Sat, 01 Nov 2014 15:25:12 -0700
References <CAHu5PrbHSob2r-zOTCtrYiqdudU_q+4mDXOXzp=_ReJp7khTDg@mail.gmail.com> <nad-150419.13393227102014@news.gmane.org> <CAHu5PrY-T=DT3wOg-Y+Va9WgwBV3w9d7M-tu=_N-CNgWsSzGpg@mail.gmail.com> <nad-939726.01114928102014@news.gmane.org> <CAHu5Pra68EDgkvFYHTQ+SrmB6syew9A1SAbB5CEmLuzqbs5vQg@mail.gmail.com> <nad-E45689.14013428102014@news.gmane.org> <CAHu5PrbYMUzfs1AZYzPaN__51h7Q=4D5bfjM2EQOfx90OKxxNQ@mail.gmail.com> <nad-5F56DF.03524401112014@news.gmane.org> <CAHu5PrZKv4KmP7T0N0gxYWWp5TQqoGDfak1dCUP7mOWb7TUJAQ@mail.gmail.com> <CAHu5Praf_9rkGYw5yzP4Tqs3DZsx0qM70esUNukNoDCqzTmj2g@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host 204.14.154.216
User-Agent MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
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>
Newsgroups comp.lang.python
Message-ID <mailman.15400.1414880724.18130.python-list@python.org> (permalink)
Lines 38
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1414880724 news.xs4all.nl 2915 [2001:888:2000:d::a6]:40116
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:80108

Show key headers only | View raw


In article 
<CAHu5Praf_9rkGYw5yzP4Tqs3DZsx0qM70esUNukNoDCqzTmj2g@mail.gmail.com>,
 Cyd Haselton <chaselton@gmail.com> wrote:
> On Sat, Nov 1, 2014 at 1:47 PM, Cyd Haselton <chaselton@gmail.com> wrote:
[...]
> > Sure enough, nm -D libm.so shows that sincos is NOT available in that
> > library on my Android device. Now to figure out what to do about it.
[...]
> UPDATE:  After doing a bit of research it looks like it would be
> easier to build Python without sincos...is that possible?
> If not, I'll need to figure out how to get bionic libm sources with a
> proper Makefile (instead of Android's build system)

While sin() and/or cos() are primarily used in the expected places in 
the Python standard library (like the math module), sin() is also used 
in the implementation of type "complex" objects, code that is part of 
the core interpreter.  I see that there is an old, undocumented, and 
unsupported macro to disable building of complex number support.  But 
more hacking is needed to even get a somewhat working build with it 
these days and then, without complex support, many tests in the standard 
library fail and what you end up isn't really Python.  So, I think 
rather than hacking up Python, you should try to fix the broken 
platform.  There seem to be a number of project that claim to support 
Python on Android.  Perhaps they could be of help.

FWIW, the macro is "WITHOUT_COMPLEX":

./configure [...] CPPFLAGS='-DWITHOUT_COMPLEX'

and Lib/optparse.py would need to be patched to comment out its use of 
"complex".

Again, good luck!

-- 
 Ned Deily,
 nad@acm.org

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


Thread

Re: Build Question: How to Add -Wl, --option Before Objects In Setup.py? Ned Deily <nad@acm.org> - 2014-11-01 15:25 -0700

csiph-web