Issue 26487: Machine value for fat PowerPC build (original) (raw)
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/_osx_support.py", 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?
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.