[PyQt] Tutorials - making standalone apps on Windows and OS X from PyQt4 apps.

piotr maliński riklaunim at gmail.com
Thu Jun 11 21:44:57 BST 2009


1. Check the zipped size
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.


2009/6/11 Björn Häuser <bjoernhaeuser at googlemail.com>

> Scott Frankel schrieb:
>
>>
>> Thanks for sharing the tutorial.  In my case, it's quite timely.
>>
>> Would you have any suggestions for including sqldriver support in an
>> py2app project?  I still have not gotten that to work and haven't found
>> relevant info in my searches.  (Reference my email to the list:  "QPSQL and
>> py2app" on 2009-09-09.)
>>
>> Thanks!
>> Scott
>>
>>
>>  > What's the best way to declare sqldrivers in a py2app setup.py file?
>>
>>  > I'm in the throes of building my app for OSX, using py2ap for the first
>> time.  One of the issues I'm still facing is how to include PostgreSQL
>> support and the QPSQL driver in the build process.  I'm building using tools
>> and libraries from MacPorts, (python25) which doesn't appear to have
>> installed sqldrivers.
>>
>>  > Does libqsqlpsql.dylib (which I have in my development downloads) need
>> to be copied to the app bundle manually?  If so, to where?
>>
>>  > My setup.py file is attached.
>>
>>  > I've found numerous hits on how to build PyQt apps using py2app, but
>> none illustrate including db support files.
>>
>>
>>
>> On Jun 10, 2009, at 3:32 AM, piotr maliński wrote:
>>
>>  I've made two how-tos describing about building (and troubleshooting)
>>> standalone apps from PyQt4 scripts on Mac OS X and MS WIndows.
>>>
>>> English version:
>>>
>>> http://www.rkblog.rk.edu.pl/w/p/building-standalone-ms-windows-apps-py2exe/
>>> http://www.rkblog.rk.edu.pl/w/p/building-mac-os-x-applications-py2app/
>>>
>>> Polish version:
>>>
>>> http://www.python.rk.edu.pl/w/p/budowanie-binarnych-aplikacji-mac-os-x-za-pomoca-py2app/
>>>
>>> http://www.python.rk.edu.pl/w/p/budowanie-binarnych-paczek-aplikacji-pyqt4-pod-ms-windows/
>>>
>>>
>>> _______________________________________________
>>> PyQt mailing list    PyQt at riverbankcomputing.com <mailto:
>>> PyQt at riverbankcomputing.com>
>>> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>>>
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>>
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> PyQt mailing list    PyQt at riverbankcomputing.com
>> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>>
>
> Hello,
>
> i tried this tutorial for py2app to build my app.
> Is works perfectly, but greats a .app with 100mb size,
> is there any possibility to create a smaller .app?
>
> Thanks in advance,
> Björn
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20090611/84437aca/attachment.html


More information about the PyQt mailing list