[Patches] [ python-Patches-1380777 ] Some fixes for the binary distribution builder

SourceForge.net noreply at sourceforge.net
Wed Dec 14 21:25:24 CET 2005


Patches item #1380777, was opened at 2005-12-14 21:25
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1380777&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Macintosh
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Ronald Oussoren (ronaldoussoren)
Assigned to: Jack Jansen (jackjansen)
Summary: Some fixes for the binary distribution builder

Initial Comment:
The attached patch fixes some problems with the build script for binary 
distributions on Mac OS X

1) the builder used to unconditionally replace parts of Apple's python
    installation. This is needed on OSX 10.3, but not on later versions.

2) corrects version numbers in several places, and verifies the correct
    version in the build script

3) the builddocs script usually crashes on my system after correctly
    building the documentation, workaround this in the build script

4) Some hacks w.r.t. a pyconfig.h file that works on 10.3 and 10.4
    (see below)

There is a problem with pyconfig.h in a binary distribution on OSX: there 
are some header file regressions between 10.3 and 10.4. This means that 
you cannot build extensions with a python that was build on 10.3 while 
running on 10.4 (unless you're lucky). 

My first workaround was a pyconfig.h that #include-d pyconfig-10.3.h or 
pyconfig-10.4.h after testing the current platform (by misusing some 
feature macros in AvailabilityMacros.h). This doesn't work because 
distutils reads pyconfig.h and makes that available to setup.py authors. 

A second, untested approach is to merge the two pyconfig.h files. I guess 
it would be good enough to just surpress the #defines for 
_POSIX_SOURCE, _XOPEN_SOURCE and _XOPEN_SOURCE_EXTENDED on 
Tiger.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1380777&group_id=5470


More information about the Patches mailing list