New submission from Ned Deily: On OS X 10.8 or 10.9 when using Xcode 5 and attempting to build an extension module using a universal Python that includes a PPC architecture (such as from one of the python.org 32-bit-only installers), the extension module build can fail with numerous compiler errors. Recent python.org 32-bit-only installers attempt to remove unavailable PPC architectures when building extension modules. Unfortunately, due to changes between Xcode 4 and Xcode 5, the test in Distutils does not work with Xcode 5 compilers.
The problem affects the current OS X 32-bit-only python.org installers for Python 3.3.2 and 2.7.5. It is not a problem for OS X 64-bit/32-bit installers for 10.6+. A workaround for the problem is to override the Distutils defaults by setting the ARCHFLAGS environment variable to the desired architectures, for example: ARCHFLAGS="-arch i386" /usr/local/bin/python2.7 -m pip install ... ---------- assignee: ned.deily components: Distutils, Extension Modules, Macintosh messages: 201299 nosy: ned.deily, tarek priority: normal severity: normal status: open title: Extension module builds can fail with Xcode 5 on OS X 10.8+ versions: Python 2.7, Python 3.3, Python 3.4 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19400> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com