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.
|