<div dir="ltr"><br><div class="gmail_quote">On Thu, May 28, 2009 at 3:47 PM, Darryl Wallace <span dir="ltr"><<a href="mailto:darryl.wallace@prosensus.ca">darryl.wallace@prosensus.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<div class="im"><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
I build a exe program with py2exe, and it size is about 8M.<br>
The program is very simple, it's a widget that contain too lineedit and a button, it's based on pyqt.<br>
Please is there a way to resize the file for small one.<br>
</blockquote></div>
My experience has been that if it is a gui-based PyQt program, you need to package the python runtime (python2x.dll), the python PyQt libraries (Qt.pyd, QtCore.pyd, QtGui.pyd) and the Qt dll's (QtCore4.dll, QtGui4.dll). You may also need to distribute the C-runtime library (mingwm10.dll or msvcrXX.dll) depending on how your application was setup. All of these need to be included because you can't assume the end user will have them on their system.<br>
</blockquote><div>Yes, that is.<br>However, the only way i found and it was a suggestion from the py2exe mailing list,<br>is the use of "options = { "py2exe": {"compressed": 2}}" in my setup.py.<br>
That does not include the dll, PyQt libraries and python runtime in the executable file, giving a chance to install there libraries separately.<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Even with your small widget developed in C++ you still need to distribute the Qt dll's since these are not standard windows libraries.<br>
<br>
My conclusion: it's not possible to make your apps have super small download size with Qt and PyQt.<br>
<br>
If anyone has other experiences with this please share them.<br><font color="#888888">
</font></blockquote><div>Thanks Darry for you reply. <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><font color="#888888"><br>
Darryl<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Ali MEZGANI<br>Network Engineering/Security <br><a href="http://securfox.wordpress.com/">http://securfox.wordpress.com/</a><br>
</div>