<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7653.38">
<TITLE>Problems with py2app and wx on leopard</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>I'm experiencing a bit of odd behavior with py2app and wx.&nbsp; The shared<BR>
object files from wx, when inspected with otool, are looking for:<BR>
<BR>
/usr/lib/libwx_macud-2.8.0.dylib (compatibility version 2.6.0, current<BR>
version 2.8.4)<BR>
<BR>
That is based on wx installed in the site-packages of the system python that<BR>
ships with leopard.<BR>
<BR>
Now I installed python from python.org, got wxPython source, and tried<BR>
again.&nbsp; This time, in my wx directory, otool shows no such requirement.<BR>
That's what I want, so that works well.<BR>
<BR>
But it turns out that py2app was still pulling from the system wx.&nbsp; So I set<BR>
use_pythonpath to True, thinking it would prefer mine over the system one.<BR>
Now it is including *both*, mine goes to Frameworks in the app bundle, while<BR>
the system one goes into Resources in the app bundle.&nbsp; At runtime, if I'm<BR>
running on a system without the libwx_macud-2.8.0.dylib file, it still<BR>
fails.&nbsp; This is what I am seeing when I grep for _windows_ (one of the so<BR>
files from wx) from my py2app build output:<BR>
<BR>
byte-compiling<BR>
/Users/jkelly/Documents/Code/Projects/Installer/Dev/demo/demovwinstaller/bui<BR>
ld/bdist.macosx-10.3-i386/python2.5-standalone/app/temp/wx/_windows_.py to<BR>
wx/_windows_.pyc<BR>
copying<BR>
/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/w<BR>
x-2.8-mac-unicode/wx/_windows_.so -&gt;<BR>
/Users/jkelly/Documents/Code/Projects/Installer/Dev/demo/demovwinstaller/dis<BR>
t_osx/VWInstaller.app/Contents/Resources/lib/python2.5/lib-dynload/wx<BR>
copying<BR>
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-package<BR>
s/wx-2.8-mac-unicode/wx/_windows_.so -&gt;<BR>
/Users/jkelly/Documents/Code/Projects/Installer/Dev/demo/demovwinstaller/dis<BR>
t_osx/VWInstaller.app/Contents/Frameworks<BR>
stripping _windows_.so<BR>
<BR>
So how do I make py2app ignore the system install version of wx completely?<BR>
<BR>
Thanks!<BR>
Jim<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>