>
> So you are using the python that Apples supplied with 10.5.

Actually I believe it came with 2.3

In this case, py2app does not include python itself (or system installed
> standard packages?)
>
> I wonder if that's messing things up for you.
>
> If you want to deploy to non 10.5 systems, you should use the 
> python.orgpython. It will install into /Library/Frameworks, and py2app will 
> include
> everything needed to run the app on any 10.3.9 and above system

I was running Python 2.5.1, I'm now at 2.5.4.
It is installed in /Library/Frameworks, /usr/bin is a symlink

You can look into the build app bundle by right clicking on the bundle. Poke
> around in there, and you can see what's getting included.
>
> if you add something to "PACKAGES" the while package should get included
> as-is. Everything else gets included inside a zip file -- you can unzip it
> and see what's there.


Inside the package contents when I do a full build instead of an alias I see
the following...
/Users/elizabeth/Code/dist/mac_test.app/Contents/Resources/lib/python2.5/MySQLdb/
/Users/elizabeth/Code/dist/
mac_test.app/Contents/Resources/lib/python2.5/site-packages.zip

I unzipped sites.packages.zip and found several .pyc files including
_mysql.pyc and folders for the other module I'm importing (wx)

Also when I try to build the whole app instead of the alias, using packages,
I get "ImportModule error: No module MySQLdb" but when I use includes I
receive the error  "ImportError:
'/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload/_mysql.so'"


Is the Frameworks folder where my MySQLdb should be installed? because it's
not there at all, it's in /Library/Python/2.5/site-packages and there is a
_mysql.so in there.
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to