This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: Machine value for fat PowerPC build
Type: compile error Stage: resolved
Components: Build, Distutils, macOS Versions: Python 2.7
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: dstufft, eric.araujo, hanz, ned.deily, ronaldoussoren
Priority: normal Keywords: patch

Created on 2016-03-05 19:03 by hanz, last changed 2022-04-11 14:58 by admin. This issue is now closed.

File name Uploaded Description Edit
patch-plat-ppc-fat.diff hanz, 2016-03-05 19:03
Messages (2)
msg261220 - (view) Author: (hanz) Date: 2016-03-05 19:03
Building on Mac OS X 10.5.8 (Power Mac G5) for ppc and ppc64 fails with

  File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python27/python27/work/Python-2.7.11/Lib/", line 485, in get_platform_osx
    "Don't know machine value for archs=%r" % (archs,))
ValueError: Don't know machine value for archs=('ppc', 'ppc64')
generate-posix-vars failed
make: *** [pybuilddir.txt] Error 1

If I apply the attached patch, it builds and works fine.
Would it be possible to include these changes in Python?
msg261221 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2016-03-05 19:25
Thanks for your suggestion.  Unfortunately, at the time support for OS X universal builds was added, it was not anticipated that there would be a need for that particular combination of architectures, i.e. just PPC-32 and PPC-64, and, to the best of my knowledge, this is the first time this request has come up.  The universal platform names defined in get_platform_osx have become an external standard and are used elsewhere in the Python ecosphere, in particular, in pip and in binary wheels.  So adding a new universal platform name at this time for the combination of two long obsolete architectures is probably not a good idea.  Options: either build separate single-architecture versions, or add "i386" to use the existing "fat3" definition, or continue to apply the patch yourself.
Date User Action Args
2022-04-11 14:58:28adminsetgithub: 70674
2016-03-05 19:25:25ned.deilysetstatus: open -> closed
resolution: wont fix
messages: + msg261221

stage: resolved
2016-03-05 19:03:29hanzcreate