Re: [PyQt] How to slim programs under windows

2009-05-28 Thread Demetrius Cassidy

This really isn't PyQt4 related. Look at the py2exe faq, it lists common
modules you can ignore when building your exe.

You can also try UPX: http://upx.sourceforge.net/


handrix wrote:
 
 Hi,
 
 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.
 
 Regards,
 
 -- 
 Ali MEZGANI
 Network Engineering/Security
 http://securfox.wordpress.com/
 
 ___
 PyQt mailing listPyQt@riverbankcomputing.com
 http://www.riverbankcomputing.com/mailman/listinfo/pyqt
 

-- 
View this message in context: 
http://www.nabble.com/How-to-slim-programs-under-windows-tp23745556p23764146.html
Sent from the PyQt mailing list archive at Nabble.com.

___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] How to slim programs under windows

2009-05-28 Thread mezgani ali
On Thu, May 28, 2009 at 3:47 PM, Darryl Wallace darryl.wall...@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/
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[PyQt] How to slim programs under windows

2009-05-27 Thread mezgani ali
Hi,

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.

Regards,

-- 
Ali MEZGANI
Network Engineering/Security
http://securfox.wordpress.com/
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt