<HTML>
<HEAD>
<TITLE>Re: [PyQt] Python modules shouldn't link directly to Python framework on OS X</TITLE>
</HEAD>
<BODY>
<FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>In my humble opinion there should be an option for linking against the framework libraries. I don’t mind having the default be as described.<BR>
<BR>
As the framework library is the only thing I test against, I would prefer having the option to only use this library. I have been burned too many times by customers having an incorrect library in their path so I have come to respect the “link to this library or don’t run approach”.<BR>
<BR>
Brian Kelley<BR>
<BR>
On 11/21/08 12:03 PM, "Phil Thompson" <phil@riverbankcomputing.com> wrote:<BR>
<BR>
</SPAN></FONT></FONT><BLOCKQUOTE><FONT SIZE="4"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>On Fri, 14 Nov 2008 23:33:59 -0600, William Kyngesburye<BR>
<woklist@kyngchaos.com> wrote:<BR>
> Python extensions on OS X are built as bundles, and are expected to be<BR>
> loaded dynamically by Python or another program that is linked to the<BR>
> Python framework. The extension expects to find all the Python<BR>
> symbols already loaded.<BR>
><BR>
> SIP gets the -bundle flag right, but also links directly to the Python<BR>
> framework.<BR>
><BR>
> The nice benefit of this is that we can compile an extension with one<BR>
> build of Python (say the Leopard system Python 2.5.1), then install a<BR>
> newer (point version) Python and have the extension loadable in the<BR>
> newer Python. Or distribute the extension where others might have<BR>
> installed a newer version of Python.<BR>
><BR>
> This will take care of not-linking the python framework - in<BR>
> siputils.py, ModuleMakefile().finalise(), change:<BR>
><BR>
> self.LFLAGS.append("-F%s" % string.join(dl, os.sep))<BR>
> self.LFLAGS.append("-framework Python")<BR>
><BR>
> to:<BR>
><BR>
> self.LFLAGS.append("-undefined dynamic_lookup")<BR>
<BR>
Thanks - it will be in SIP v4.8.<BR>
<BR>
Phil<BR>
_______________________________________________<BR>
PyQt mailing list PyQt@riverbankcomputing.com<BR>
<a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><BR>
<BR>
</SPAN></FONT></FONT></BLOCKQUOTE>
</BODY>
</HTML>