| Store | Cart

Re: [Python-Dev] Working on issue 23496: should I use a macro test or an edit to configure.ac?

From: Ryan Smith-Roberts <r...@lab.net>
Thu, 26 Feb 2015 17:13:20 -0800
I'm not an official cpython developer but ifdef __ANDROID__ is quite in
line with other per-platform support (__FreeBSD__, __linux__, etc), as well
as already being in use in Modules/_posixsubprocess.c. Is __ANDROID__ not
being defined when it should be?

On Thu, Feb 26, 2015 at 4:20 PM, Ryan Gonzalez <rym...@gmail.com> wrote:

> DOES NOBODY HAVE AN ANSWER TO THIS???>> I'm REALLY relying on someone who works on Python to answer this. PLEASE??>> On Wed, Feb 25, 2015 at 12:17 PM, Ryan Gonzalez <rym...@gmail.com> wrote:>>> So...>>>> There was a recent discussion here on porting Python to Android. Well,>> for those of you who saw too many unread messages and marked the whole>> thread as read like I usually do, I helped Cyd figure out some patches that>> make it work. Cyd then opened Issue 23496>> <http://bugs.python.org/issue23496>. Now, I'm going to try to redo the>> patches against HEAD (or tip in Mercurial language).>>>> Which leads me to the question. See, of course, the patches should only>> be enabled if Python is being built targeting Android, but I'm not sure how>> that should be detected.>>>> I know that the Android target triple is arm-linux-androideabi. Should I>> test for the __ANDROID__ macro in the source file, or should I modify>> configure.ac to detect Android and define its own macro? Also, if a>> configure.ac edit is preferred, where should it be? It's slightly>> painful to scan through all 4000 lines of Python's configure script. ;)>>>> -->> Ryan>> If anybody ever asks me why I prefer C++ to C, my answer will be simple:>> "It's becauseslejfp23(@#Q*(E*EIdc-SEGFAULT. Wait, I don't think that was>> nul-terminated.">> Personal reality distortion fields are immune to contradictory evidence.>> - srean>> Check out my website: http://kirbyfan64.github.io/>>>>>> --> Ryan> If anybody ever asks me why I prefer C++ to C, my answer will be simple:> "It's becauseslejfp23(@#Q*(E*EIdc-SEGFAULT. Wait, I don't think that was> nul-terminated."> Personal reality distortion fields are immune to contradictory evidence. -> srean> Check out my website: http://kirbyfan64.github.io/>> _______________________________________________> Python-Dev mailing list> Pyth...@python.org> https://mail.python.org/mailman/listinfo/python-dev> Unsubscribe:> https://mail.python.org/mailman/options/python-dev/rmsr%40lab.net>>

_______________________________________________
Python-Dev mailing list
Pyth...@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: https://mail.python.org/mailman/options/python-dev/python-dev-ml%40activestate.com

Recent Messages in this Thread
Ryan Gonzalez Feb 25, 2015 06:17 pm
Ryan Gonzalez Feb 27, 2015 12:20 am
Ryan Smith-Roberts Feb 27, 2015 01:13 am
Ethan Furman Feb 27, 2015 01:19 am
Ryan Smith-Roberts Feb 27, 2015 01:52 am
Ethan Furman Feb 27, 2015 02:11 am
Ryan Feb 27, 2015 03:13 am
Ethan Furman Feb 27, 2015 12:37 am
Messages in this thread