<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. &nbsp;I don&#8217;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. &nbsp;I have been burned too many times by customers having an incorrect library in their path so I have come to respect the &#8220;link to this library or don&#8217;t run approach&#8221;.<BR>
<BR>
Brian Kelley<BR>
<BR>
On 11/21/08 12:03 PM, &quot;Phil Thompson&quot; &lt;phil@riverbankcomputing.com&gt; 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>
&lt;woklist@kyngchaos.com&gt; wrote:<BR>
&gt; Python extensions on OS X are built as bundles, and are expected to be<BR>
&gt; loaded dynamically by Python or another program that is linked to the<BR>
&gt; Python framework. &nbsp;The extension expects to find all the Python<BR>
&gt; symbols already loaded.<BR>
&gt;<BR>
&gt; SIP gets the -bundle flag right, but also links directly to the Python<BR>
&gt; framework.<BR>
&gt;<BR>
&gt; The nice benefit of this is that we can compile an extension with one<BR>
&gt; build of Python (say the Leopard system Python 2.5.1), then install a<BR>
&gt; newer (point version) Python and have the extension loadable in the<BR>
&gt; newer Python. &nbsp;Or distribute the extension where others might have<BR>
&gt; installed a newer version of Python.<BR>
&gt;<BR>
&gt; This will take care of not-linking the python framework - in<BR>
&gt; siputils.py, ModuleMakefile().finalise(), change:<BR>
&gt;<BR>
&gt; self.LFLAGS.append(&quot;-F%s&quot; % string.join(dl, os.sep))<BR>
&gt; self.LFLAGS.append(&quot;-framework Python&quot;)<BR>
&gt;<BR>
&gt; to:<BR>
&gt;<BR>
&gt; self.LFLAGS.append(&quot;-undefined dynamic_lookup&quot;)<BR>
<BR>
Thanks - it will be in SIP v4.8.<BR>
<BR>
Phil<BR>
_______________________________________________<BR>
PyQt mailing list &nbsp;&nbsp;&nbsp;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>