[Python-Dev] fat binaries for OSX

Ronald Oussoren ronaldoussoren at mac.com
Mon Apr 17 21:51:56 CEST 2006


Hi,

I've uploaded 3 patches that form the core of the python24-fat tree  
that Bob Ippolito and I have been maintaining for a while. With these  
patches one can build fat/universal binaries for python that run  
natively on OSX 10.3 and later.

I'd like to merge these patches to the trunk, but would like some  
review. I'm especially unhappy with the code duplication in patch  
1471925, but don't know how to solve that.


* Patch 1471883: --enable-universalsdk on Mac OS X

   This patch introduces a --enable-universalsdk flag for configure
   and the required changes to the build system to get this to work.

   When this flag is used Python is build as a universal (aka fat)
   binary.


* Patch 1471761: test for broken poll at runtime

   This patch moves the HAVE_BROKEN_POLL test from configure-time
   to runtime. With this patch we can have a single binary on OSX
   that works on OSX 10.3.9 or later while having select.poll
   available on those versions of the OS that have a functioning
   version poll().


* Patch 1471925: Weak linking support for OSX

   This patch adds weak linking support to the posix, time and
   socket modules. That is, the existance of a number of functions
   is tested for at runtime (on OSX only).

   With this patch one can use a python binary that was build on
   OSX 10.4 on OSX 10.3 systems, without loosing access to APIs
   that were introduced in 10.4 on OSX 10.4 systems.


Ronald


More information about the Python-Dev mailing list