[issue28849] do not define sys.implementation._multiarch on Android

2017-03-31 Thread Donald Stufft

Changes by Donald Stufft :


--
pull_requests: +1088

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28849] do not define sys.implementation._multiarch on Android

2016-12-14 Thread Roundup Robot

Roundup Robot added the comment:

New changeset ab3d870aa3bc by Xavier de Gaye in branch '3.6':
Issue #28849: Skip test_sysconfig.test_triplet_in_ext_suffix on non linux 
platforms.
https://hg.python.org/cpython/rev/ab3d870aa3bc

New changeset 0ff181ca7558 by Xavier de Gaye in branch 'default':
Issue #28849: Merge 3.6.
https://hg.python.org/cpython/rev/0ff181ca7558

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28849] do not define sys.implementation._multiarch on Android

2016-12-11 Thread Xavier de Gaye

Changes by Xavier de Gaye :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28849] do not define sys.implementation._multiarch on Android

2016-12-10 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b3ba41bf92c7 by Xavier de Gaye in branch '3.6':
Issue #28849: Do not define sys.implementation._multiarch on Android.
https://hg.python.org/cpython/rev/b3ba41bf92c7

New changeset 40e8b39199da by Xavier de Gaye in branch 'default':
Issue #28849: Merge 3.6.
https://hg.python.org/cpython/rev/40e8b39199da

--
nosy: +python-dev

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28849] do not define sys.implementation._multiarch on Android

2016-12-03 Thread Xavier de Gaye

Xavier de Gaye added the comment:

The MULTIARCH triplet:
  * is used by the build system in the suffix of the name of the _sysconfigdata 
private module, it may have any value (including being empty) when the platform 
is non-multiarch - for example cross-compiling for an Android emulator with the 
'foo-bar-foobar' MULTIARCH triplet works just fine (without the patch)
  * is not used by the interpreter
  * the Python user may not use it (sys.implementation_multiarch is private)
  * is not used in the standard library, except by the sysconfig modules to get 
the name of the _sysconfigdata module (and it may be empty)
  * is not needed any more to cross-compile non-multiarch platforms (even 
without the patch) since issue 28046, where platform-specific directories have 
been removed

On Android the MULTIARCH triplet adds the burden of having to maintain the list 
of Android processors and abis in configure.ac through a set of complex 
conditionals (see below [1]) whose correctness is uncertain and not verified. 
This is useless and removed since it is not needed anymore.

[1] The Android set of conditionals in configure.ac:

#if defined(__ANDROID__)
# if defined(__x86_64__) && defined(__LP64__)
x86_64-linux-android
# elif defined(__i386__)
i686-linux-android
# elif defined(__aarch64__) && defined(__AARCH64EL__)
#  if defined(__ILP32__)
aarch64_ilp32-linux-android
#  else
aarch64-linux-android
#  endif
# elif defined(__ARM_EABI__) && defined(__ARMEL__)
arm-linux-androideabi
# elif defined(__mips_hard_float) && defined(_MIPSEL)
#  if _MIPS_SIM == _ABIO32
mipsel-linux-android
#  elif _MIPS_SIM == _ABI64
mips64el-linux-android
#  else
#   error unknown platform triplet
#  endif
# else
#   error unknown platform triplet
# endif

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28849] do not define sys.implementation._multiarch on Android

2016-12-03 Thread Xavier de Gaye

Xavier de Gaye added the comment:

The change made by the patch in Makefile.pre.in handles the removing of the 
dangling underscore in the patch of issue 28833, it is not needed.
android_multiarch_2.patch is simpler: the change in Makefile.pre.in has been 
removed and test_triplet_in_ext_suffix is now skipped when sys.implementation 
does not have the _multiarch attribute instead of only for android as 
previously.

--
Added file: http://bugs.python.org/file45739/android_multiarch_2.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28849] do not define sys.implementation._multiarch on Android

2016-12-01 Thread Matthias Klose

Matthias Klose added the comment:

> An idea is renaming it to something like target_architecture
> to make things clearer

Yes, that was my intent, and I think it is the right solution. using 
$(MACHDEP)_$(MULTIARCH) in the sysconfigdata name and probably in other places 
was not a good idea (introduced by the platdir removal).

There's no reason why this target_architecture could be used by any unix like 
platform.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28849] do not define sys.implementation._multiarch on Android

2016-12-01 Thread Chi Hsuan Yen

Chi Hsuan Yen added the comment:

Actually all UNIX-like platforms now have non-empty 
sys.implementation._multiarch now (msg273875). An idea is renaming it to 
something like target_architecture to make things clearer. It will be a triplet 
on all system, whether cross-built or not.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28849] do not define sys.implementation._multiarch on Android

2016-12-01 Thread Xavier de Gaye

New submission from Xavier de Gaye:

Android is not a multiarch system and the unix build system can cross compile 
non-multiarch systems as well as multiarch systems.  This is a follow up of the 
decisions implemented in issue 28046 and the patch fixes also an oversight made 
in this issue in Makefile.pre.in.

Also tested with the patch in issue 28833 that implements cross compilation of 
third-party extension modules.
Please run autoconf after installing the patch.

--
assignee: xdegaye
components: Cross-Build
files: android_multiarch.patch
keywords: patch
messages: 282140
nosy: Alex.Willmer, Chi Hsuan Yen, doko, haypo, ned.deily, xdegaye, zach.ware
priority: normal
severity: normal
stage: patch review
status: open
title: do not define sys.implementation._multiarch on Android
type: behavior
versions: Python 3.6, Python 3.7
Added file: http://bugs.python.org/file45717/android_multiarch.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com