Message 166991 - Python tracker

Message166991

Author ronaldoussoren
Recipients ned.deily, ronaldoussoren
Date 2012-07-31.12:03:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1343736184.46.0.527657145038.issue15498@psf.upfronthosting.co.za>
In-reply-to
Content
Removing the dependency on NSLookupAndBindSymbol (and related APIs) is easier than I expected.

The attached patch (issue15498-v1.txt) uses dladdr to get symbol information for Py_Initialize and that information includes the path for the library where that symbol is located (that is the framework).

The patch has seen only light testing, in particular: I've verified that the library path has the expected value, but haven't run the full test suite set.

TODO:
- Run test full test suite with a framework build (both before and after
  installing)
- Likewise for a regular unix build
- Likewise for a regular unix build with --enable-shared

This patch should work on OSX 10.4 or later, and may also work on OSX 10.3, the manpage for dladdr is not entirely clear on whether or not the symbol is available in libSystem on OSX 10.3.
History
Date User Action Args
2012-07-31 12:03:04ronaldoussorensetrecipients: + ronaldoussoren, ned.deily
2012-07-31 12:03:04ronaldoussorensetmessageid: <1343736184.46.0.527657145038.issue15498@psf.upfronthosting.co.za>
2012-07-31 12:03:03ronaldoussorenlinkissue15498 messages
2012-07-31 12:03:03ronaldoussorencreate