[New-bugs-announce] [issue19400] Extension module builds can fail with Xcode 5 on OS X 10.8+

Ned Deily report at bugs.python.org
Sat Oct 26 00:55:59 CEST 2013


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 <report at bugs.python.org>
<http://bugs.python.org/issue19400>
_______________________________________


More information about the New-bugs-announce mailing list