File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -385,7 +385,8 @@ def test_SO_in_vars(self):
385385 self .assertIsNotNone (vars ['SO' ])
386386 self .assertEqual (vars ['SO' ], vars ['EXT_SUFFIX' ])
387387
388- @unittest .skipUnless (sys .platform == 'linux' , 'Linux-specific test' )
388+ @unittest .skipUnless (hasattr (sys .implementation , '_multiarch' ),
389+ 'multiarch-specific test' )
389390 def test_triplet_in_ext_suffix (self ):
390391 ctypes = import_module ('ctypes' )
391392 import platform , re
@@ -396,7 +397,6 @@ def test_triplet_in_ext_suffix(self):
396397 if re .match ('(i[3-6]86|x86_64)$' , machine ):
397398 if ctypes .sizeof (ctypes .c_char_p ()) == 4 :
398399 self .assertTrue (suffix .endswith ('i386-linux-gnu.so' ) or
399- suffix .endswith ('i686-linux-android.so' ) or
400400 suffix .endswith ('x86_64-linux-gnux32.so' ),
401401 suffix )
402402 else : # 8 byte pointer size
Original file line number Diff line number Diff line change @@ -528,6 +528,8 @@ Documentation
528528Build
529529-----
530530
531+ - Issue #28849: Do not define sys.implementation._multiarch on Android.
532+
531533- Issue #10656: Fix out-of-tree building on AIX. Patch by Tristan Carel and
532534 Michael Haubenwallner.
533535
Original file line number Diff line number Diff line change @@ -5218,29 +5218,7 @@ cat >> conftest.c <<EOF
52185218#undef sparc
52195219#undef unix
52205220#if defined(__ANDROID__)
5221- # if defined(__x86_64__) && defined(__LP64__)
5222- x86_64-linux-android
5223- # elif defined(__i386__)
5224- i686-linux-android
5225- # elif defined(__aarch64__) && defined(__AARCH64EL__)
5226- # if defined(__ILP32__)
5227- aarch64_ilp32-linux-android
5228- # else
5229- aarch64-linux-android
5230- # endif
5231- # elif defined(__ARM_EABI__) && defined(__ARMEL__)
5232- arm-linux-androideabi
5233- # elif defined(__mips_hard_float) && defined(_MIPSEL)
5234- # if _MIPS_SIM == _ABIO32
5235- mipsel-linux-android
5236- # elif _MIPS_SIM == _ABI64
5237- mips64el-linux-android
5238- # else
5239- # error unknown platform triplet
5240- # endif
5241- # else
5242- # error unknown platform triplet
5243- # endif
5221+ # Android is not a multiarch system.
52445222#elif defined(__linux__)
52455223# if defined(__x86_64__) && defined(__LP64__)
52465224 x86_64-linux-gnu
Original file line number Diff line number Diff line change @@ -770,29 +770,7 @@ cat >> conftest.c <<EOF
770770# undef sparc
771771# undef unix
772772# if defined(__ANDROID__)
773- # if defined(__x86_64__) && defined(__LP64__)
774- x86_64-linux-android
775- # elif defined(__i386__)
776- i686-linux-android
777- # elif defined(__aarch64__) && defined(__AARCH64EL__)
778- # if defined(__ILP32__)
779- aarch64_ilp32-linux-android
780- # else
781- aarch64-linux-android
782- # endif
783- # elif defined(__ARM_EABI__) && defined(__ARMEL__)
784- arm-linux-androideabi
785- # elif defined(__mips_hard_float) && defined(_MIPSEL)
786- # if _MIPS_SIM == _ABIO32
787- mipsel-linux-android
788- # elif _MIPS_SIM == _ABI64
789- mips64el-linux-android
790- # else
791- # error unknown platform triplet
792- # endif
793- # else
794- # error unknown platform triplet
795- # endif
773+ # Android is not a multiarch system.
796774# elif defined(__linux__)
797775# if defined(__x86_64__) && defined(__LP64__)
798776 x86_64-linux-gnu
You can’t perform that action at this time.
0 commit comments