Maybe something from the code is pulling this in? Hard to say. Try deleting qtwebkit from the app - will the app run after that?<br><br><div class="gmail_quote">2009/6/11 Björn Häuser <span dir="ltr"><<a href="mailto:bjoernhaeuser@googlemail.com">bjoernhaeuser@googlemail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">piotr maliñski schrieb:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
1. Check the zipped size<br>
2. go to the app (show package contents) and see what did it included - detele all _debug libraries if there are any (aliases and the original files), and if it added unused PyQt4/other components - exclude them in the py2app config :) My QtCore/QtGui/simplejson app is 12MB zipped.<br>
<br>
<br></div>
2009/6/11 Björn Häuser <<a href="mailto:bjoernhaeuser@googlemail.com" target="_blank">bjoernhaeuser@googlemail.com</a> <mailto:<a href="mailto:bjoernhaeuser@googlemail.com" target="_blank">bjoernhaeuser@googlemail.com</a>>><div>
<div></div><div class="h5"><br>
<br>
Scott Frankel schrieb:<br>
<br>
<br>
Thanks for sharing the tutorial. In my case, it's quite timely.<br>
<br>
Would you have any suggestions for including sqldriver support<br>
in an py2app project? I still have not gotten that to work and<br>
haven't found relevant info in my searches. (Reference my email<br>
to the list: "QPSQL and py2app" on 2009-09-09.)<br>
<br>
Thanks!<br>
Scott<br>
<br>
<br>
> What's the best way to declare sqldrivers in a py2app<br>
setup.py file?<br>
<br>
> I'm in the throes of building my app for OSX, using py2ap for<br>
the first time. One of the issues I'm still facing is how to<br>
include PostgreSQL support and the QPSQL driver in the build<br>
process. I'm building using tools and libraries from MacPorts,<br>
(python25) which doesn't appear to have installed sqldrivers.<br>
<br>
> Does libqsqlpsql.dylib (which I have in my development<br>
downloads) need to be copied to the app bundle manually? If so,<br>
to where?<br>
<br>
> My setup.py file is attached.<br>
<br>
> I've found numerous hits on how to build PyQt apps using<br>
py2app, but none illustrate including db support files.<br>
<br>
<br>
<br>
On Jun 10, 2009, at 3:32 AM, piotr maliñski wrote:<br>
<br>
I've made two how-tos describing about building (and<br>
troubleshooting) standalone apps from PyQt4 scripts on Mac<br>
OS X and MS WIndows.<br>
<br>
English version:<br>
<a href="http://www.rkblog.rk.edu.pl/w/p/building-standalone-ms-windows-apps-py2exe/" target="_blank">http://www.rkblog.rk.edu.pl/w/p/building-standalone-ms-windows-apps-py2exe/</a><br>
<a href="http://www.rkblog.rk.edu.pl/w/p/building-mac-os-x-applications-py2app/" target="_blank">http://www.rkblog.rk.edu.pl/w/p/building-mac-os-x-applications-py2app/</a><br>
<br>
Polish version:<br>
<a href="http://www.python.rk.edu.pl/w/p/budowanie-binarnych-aplikacji-mac-os-x-za-pomoca-py2app/" target="_blank">http://www.python.rk.edu.pl/w/p/budowanie-binarnych-aplikacji-mac-os-x-za-pomoca-py2app/</a><br>
<a href="http://www.python.rk.edu.pl/w/p/budowanie-binarnych-paczek-aplikacji-pyqt4-pod-ms-windows/" target="_blank">http://www.python.rk.edu.pl/w/p/budowanie-binarnych-paczek-aplikacji-pyqt4-pod-ms-windows/</a><br>
<br>
<br>
_______________________________________________<br>
PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com" target="_blank">PyQt@riverbankcomputing.com</a><br>
<mailto:<a href="mailto:PyQt@riverbankcomputing.com" target="_blank">PyQt@riverbankcomputing.com</a>><br></div></div>
<mailto:<a href="mailto:PyQt@riverbankcomputing.com" target="_blank">PyQt@riverbankcomputing.com</a><div class="im"><br>
<mailto:<a href="mailto:PyQt@riverbankcomputing.com" target="_blank">PyQt@riverbankcomputing.com</a>>><br>
<br>
<a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br>
<br>
<br>
<br>
<br>
------------------------------------------------------------------------<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
------------------------------------------------------------------------<br>
<br>
<br>
_______________________________________________<br>
PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com" target="_blank">PyQt@riverbankcomputing.com</a><br>
<mailto:<a href="mailto:PyQt@riverbankcomputing.com" target="_blank">PyQt@riverbankcomputing.com</a>><br>
<a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br>
<br>
<br></div><div class="im">
Hello,<br>
<br>
i tried this tutorial for py2app to build my app.<br>
Is works perfectly, but greats a .app with 100mb size,<br>
is there any possibility to create a smaller .app?<br>
<br>
Thanks in advance,<br>
Björn<br>
<br>
<br>
</div></blockquote>
Thanks for this fast answer.<br>
I use this setup.py:<br>
<a href="http://pastie.org/509026" target="_blank">http://pastie.org/509026</a><br>
<br>
But QtWebKit is still included:<br>
32M dist/window.app//Contents/Frameworks/QtWebKit.framework<br>
<br>
What I am doing wrong?<br>
<br>
Thanks,<br><font color="#888888">
Björn<br>
</font></blockquote></div><br>