[Pythonmac-SIG] Yet another problem with two Pythons on Panther

Jack Jansen Jack.Jansen at cwi.nl
Fri Dec 5 09:05:17 EST 2003


I think I've found the reason why people get so many problems when 
having both Apple-Python and user-installed Python 2.3 on Panther: the 
way extension modules are linked.

I was creating the libxml2 package, and running package manager linked 
against apple-installed Python, but still the resulting module would 
crash with "interpreter not initialized". It took me a while, but 
finally I realized it is distutils linking that goes wrong: the 
extension module is linked with a "--framework Python", but this picks 
up /Library/Frameworks/Python.framework in preference to 
/System/Library/Frameworks/Python.framework!

It's all logical when you think about it, but I had missed this until 
now.

This could probably be fixed by adding a -F/System/Library/Frameworks 
to the builds, but I don't think we can do this for the existing 
10.3/2.3 distribution. Or can someone think of a workaround?
--
Jack Jansen, <Jack.Jansen at cwi.nl>, http://www.cwi.nl/~jack
If I can't dance I don't want to be part of your revolution -- Emma 
Goldman




More information about the Pythonmac-SIG mailing list