% python build-installer.py \ --sdk-path=/Developer/SDKs/MacOSX10.6.sdk \ --universal-archs=intel \ --dep-target=10.6 Settings: * Source directory: /Users/nicholas/src/cpython * Build directory: /tmp/_py * SDK location: /Developer/SDKs/MacOSX10.6.sdk * Third-party source: /tmp/_py/third-party * Deployment target: 10.6 * Universal architectures: ('i386', 'x86_64') * C compiler: gcc-4.2 [...] Building a universal python for intel architectures [...] checking for c++... c++ configure: WARNING: By default, distutils will build C++ extension modules with "c++". If this is not intended, then set CXX on the configure command line.
The attached patch sets not just 'CC' but 'CXX' as well. I haven't tested the patch beyond building on an OSX 10.8 system (that is, the primary use of the script is not tested)