[Pythonmac-SIG] App distribution with eggs

Scot Brew sbrew at yahoo.com
Tue Dec 2 01:16:12 CET 2008



Christopher Barker wrote:
> 
> 2) py2app works OK with eggs, as longs as the eggs are not zipped. You 
> need to install them with:
> 


Uncompressing the .egg works with py2app and MySQLdb.  I had the same issue
and was able to get py2app to correctly build the .app with MySQLdb after
manually unzipping the MySQLdb .egg under site-packages.

Instead of
*  MySQL_python-1.2.2-py2.5-macosx-10.3-fat.egg   (as a binary .zip file)

make a MySQL_python-1.2.2-py2.5-macosx-10.3-fat.egg directory and uncompress
it

1) mv MySQL_python-1.2.2-py2.5-macosx-10.3-fat.egg
MySQL_python-1.2.2-py2.5-macosx-10.3-fat.zip
2) mkdir MySQL_python-1.2.2-py2.5-macosx-10.3-fat.egg
3) mv MySQL_python-1.2.2-py2.5-macosx-10.3-fat.zip
MySQL_python-1.2.2-py2.5-macosx-10.3-fat.egg
4) cd MySQL_python-1.2.2-py2.5-macosx-10.3-fat.egg
5) unzip MySQL_python-1.2.2-py2.5-macosx-10.3-fat.zip

Re-run the py2app and it should pick up the MySQLdb module now as expected.

Scot
-- 
View this message in context: http://www.nabble.com/App-distribution-with-eggs-tp20569084p20783552.html
Sent from the Python - pythonmac-sig mailing list archive at Nabble.com.



More information about the Pythonmac-SIG mailing list