[issue9046] Python 2.7rc2 doesn't build on Mac OS X 10.4
report at bugs.python.org
Tue Jun 22 23:38:19 CEST 2010
Marc-Andre Lemburg <mal at egenix.com> added the comment:
Ronald Oussoren wrote:
> Ronald Oussoren <ronaldoussoren at mac.com> added the comment:
> The search code must look in the SDK and not fall back on looking into the system to avoid finding new headers and libraries when trying to build using an older SDK on a newer system.
Right, but at least there should be an option to fall back to
the system provided libs. This is currently not the case.
The code would need some refactoring to make this possible,
though, e.g. a combined version of the SDK functions you added
to return the corrected path instead of just True/False.
> I don't think this is a problem at the moment, but it could be in the future.
> The reason I added the SDK support code was that Snow Leopard contained a newer version of the OpenSSL libraries and the Python build picked up version information from the system version of OpenSSL instead of the SDK, and that resulted in a disfunctional build (IIRC hashlib was incomplete and that caused numerous test failures).
> Falling back to looking in the current system would be needed when looking for a file that isn't a header of library, but AFAIK we don't do that in setup.py.
I guess you should at least add a note pointing to this potential future
problem to the code and perhaps also reference this ticket.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list