New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More flexible dynamic linking for python module on OS X #453
Comments
[springmeyer] Getting boost python to not link directly to a python module can be done by:
|
[springmeyer] and with mapnik:
|
[springmeyer] option added to allow this to be controlled during mapnik build in r1779. leaving open for now to consider boost issue (and perhaps supplying patch to boost.python developers in future). |
not motivated to change this in boost at this time (been patching when I need it). closing. |
someone else ended up filing this against boost: https://svn.boost.org/trac/boost/ticket/3930 |
Currently both boost_python and the mapnik python module directly link to the Python Framework/dylib, which can be restrictive. A python module is loaded by Python, thus all of the necessary Python symbols are loaded. Linking Python directly may not be standard for OS X, and instead other modules use (pycairo for example) the flag to ld of 'undefined dynamic_lookup'. Thus when any major.minor version of Python should work with a mapnik module compiled against that major version by loading in any other binary of the same major.minor version (though there could be be some differences in the Python build that could cause trouble).
This could allow mapnik's python module to be used with either the /System (apple installed) or /Library (python.org installed) python versions as long as the major.minor version matches. And this would potentially avoid the all to common:
The text was updated successfully, but these errors were encountered: