[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] How to slim programs under windows
From:       mezgani ali <handrix () gmail ! com>
Date:       2009-05-28 16:04:56
Message-ID: f6d1ddc30905280904v46deee04tf5ac8bd6f6911f8a () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Thu, May 28, 2009 at 3:47 PM, Darryl Wallace <darryl.wallace@prosensus.ca
> wrote:

> Hello,
>
>>
>> I build a exe program with py2exe, and it size is about 8M.
>> The program is very simple, it's a widget that contain  too lineedit and a
>> button, it's based on pyqt.
>> Please is there a way to resize the file for small one.
>>
> 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.
>
Yes, that is.
However, the only way i found and it was a suggestion from the py2exe
mailing list,
is the use of  "options = { "py2exe": {"compressed": 2}}" in my setup.py.
That does not include the dll, PyQt libraries and python runtime in the
executable file, giving a chance to install there libraries separately.

>
> Even with your small widget developed in C++ you still need to distribute
> the Qt dll's since these are not standard windows libraries.
>
> My conclusion: it's not possible to make your apps have super small
> download size with Qt and PyQt.
>
> If anyone has other experiences with this please share them.
>
Thanks Darry for you reply.

>
> Darryl
>



-- 
Ali MEZGANI
Network Engineering/Security
http://securfox.wordpress.com/

[Attachment #5 (text/html)]

<div dir="ltr"><br><div class="gmail_quote">On Thu, May 28, 2009 at 3:47 PM, Darryl \
Wallace <span dir="ltr">&lt;<a \
href="mailto:darryl.wallace@prosensus.ca">darryl.wallace@prosensus.ca</a>&gt;</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&#39;s a widget that contain  too lineedit and a \
button, it&#39;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&#39;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&#39;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  &quot;options = { \
&quot;py2exe&quot;: {&quot;compressed&quot;: 2}}&quot; 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&#39;s since these are not standard windows libraries.<br> <br>
My conclusion: it&#39;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>



_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic