[Pythonmac-SIG] Upgraded to 2.4 and can't make it work

Bob Ippolito bob at redivi.com
Thu May 26 19:47:41 CEST 2005


On May 26, 2005, at 8:03 AM, Kent Quirk wrote:

> Thanks for the hint. This helped us a lot, but we don't quite have the
> complete answer.
>
> We were never linking to Python 2.3, but otool shows us that we have
> references to /Library/Frameworks/Python.framework in our extensions
> (and in the embedded Python executable) rather than to
> @executable_path/../Frameworks/Python.framework.
>
> If we manually change all these references using:
>
>  install_name_tool -change \
> /Library/Frameworks/Python.framework/Versions/2.4/Python \
>
> @executable_path/../Frameworks/Python.framework/Versions/2.4/Python \
>     myfilename.so
>
> the program works.
>
> So now the question is how do we convince py2app to do this for us?
>
> I'm guessing it may have something to do with the way we build our
> extensions, but I can't figure out how to convince XCode to brand them
> properly.

As I said before, your extensions shouldn't be linking to Python *at  
all*.  Read that part again, and fix the way your extensions are  
getting linked.

(and this is why people should use distutils to link their  
extensions, because it knows how to link things right)

-bob



More information about the Pythonmac-SIG mailing list