In article <1382659117.96447.yahoomail...@web184704.mail.ne1.yahoo.com>, Andrew Barnert <abarn...@yahoo.com> wrote: > There's a related issue, using the 10.6 SDK. This one is over a year old, but > as far as I know still has no solution. > > Xcode 4.4+ have no 10.6 SDK. This doesn't actually stop you from building > extensions; they just falls back to building for your machine when it can't > find the SDK. But that means you can't build binary distributions of your > extensions (or py2app executables, etc.). So, if you want to create useful > Python binaries, you have to either keep an old development machine around, > or build Python yourself.
I agree this is a shortcoming of the current Distutils processing in the currently Python releases. If you really do need to build with a different SDK, it would be nice if Distutils made it easier to do. As it stands now, you need to manually override Distutils settings by using sysconfig to get the current configuration variable values for CFLAGS and LDSHARED, possibly others, and then edit them to insert the desired value for "-isysroot <path to sdk>" and set the corresponding environment variables as well as MACOSX_DEPLOYMENT_TARGET. It's not elegant. But it should work. I would like to add something to make that easier. -- Ned Deily, n...@acm.org _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org https://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG