Re: Building redistributable binaries with Xcode 4.4+

Ned Deily <[email protected]>
Newsgroups gmane.comp.python.apple
Message-ID <[email protected]>
In article <[email protected]>,
 Andrew Barnert <[email protected]> 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,
 [email protected]

_______________________________________________
Pythonmac-SIG maillist  -  [email protected]
https://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: https://mail.python.org/mailman/options/Pythonmac-SIG
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.