Hi !
I have a problem.
I have a little tool that can get data about filesystems and wrote it in
python.
The main user asked me a GUI for this software.
This user is needed a portable program, so I create this kind of the
software with Py2Exe.
But it have very big size: 11 MB... :-(
The dist directory:
2006.02.21. 10:09 <DIR> .
2006.02.21. 10:09 <DIR> ..
2005.09.28. 12:41 77 824 bz2.pyd
2006.02.21. 10:09 0 dirlist.txt
2006.02.20. 12:51 611 384 library.zip
2006.02.15. 16:22 23 558 main.ico
2004.12.16. 17:22 348 160 MSVCR71.dll
2005.09.28. 12:41 1 867 776 python24.dll
2006.01.11. 12:19 102 400 pywintypes24.dl l
2005.09.28. 12:41 405 504 unicodedata.pyd
2005.09.28. 12:41 4 608 w9xpopen.exe
2006.01.11. 12:19 73 728 win32api.pyd
2006.01.11. 12:20 81 920 win32file.pyd
2006.01.11. 12:26 106 496 win32security.p yd
2006.01.10. 19:09 4 943 872 wxmsw26uh_vc.dl l
2006.02.20. 12:51 40 960 wxPyHDDirList.e xe
2005.09.28. 12:41 69 632 zlib.pyd
2006.01.10. 19:13 626 688 _controls_.pyd
2006.01.10. 19:12 696 320 _core_.pyd
2006.01.10. 19:13 364 544 _gdi_.pyd
2006.01.10. 19:13 491 520 _misc_.pyd
2006.01.10. 19:13 548 864 _windows_.pyd
20 file 11 485 758 byte
I need to have more compressed result. Can I compress dll-s, pyd-s with
Py2Exe ?
Can I decrease the total size with something ?
If not, how to I create an self-unpackager and self-starter program that
use an temporary directory in the disk ? With WinRar ?
Thanx for help:
dd 16 2422
11MB is seldom a concern for today's machine.
Durumdara wrote: Hi !
I have a problem. I have a little tool that can get data about filesystems and wrote it in python.
The main user asked me a GUI for this software.
This user is needed a portable program, so I create this kind of the software with Py2Exe.
But it have very big size: 11 MB... :-(
The dist directory: 2006.02.21. 10:09 <DIR> . 2006.02.21. 10:09 <DIR> .. 2005.09.28. 12:41 77 824 bz2.pyd 2006.02.21. 10:09 0 dirlist.txt 2006.02.20. 12:51 611 384 library.zip 2006.02.15. 16:22 23 558 main.ico 2004.12.16. 17:22 348 160 MSVCR71.dll 2005.09.28. 12:41 1 867 776 python24.dll 2006.01.11. 12:19 102 400 pywintypes24.dl l 2005.09.28. 12:41 405 504 unicodedata.pyd 2005.09.28. 12:41 4 608 w9xpopen.exe 2006.01.11. 12:19 73 728 win32api.pyd 2006.01.11. 12:20 81 920 win32file.pyd 2006.01.11. 12:26 106 496 win32security.p yd 2006.01.10. 19:09 4 943 872 wxmsw26uh_vc.dl l 2006.02.20. 12:51 40 960 wxPyHDDirList.e xe 2005.09.28. 12:41 69 632 zlib.pyd 2006.01.10. 19:13 626 688 _controls_.pyd 2006.01.10. 19:12 696 320 _core_.pyd 2006.01.10. 19:13 364 544 _gdi_.pyd 2006.01.10. 19:13 491 520 _misc_.pyd 2006.01.10. 19:13 548 864 _windows_.pyd 20 file 11 485 758 byte
I need to have more compressed result. Can I compress dll-s, pyd-s with Py2Exe ? Can I decrease the total size with something ?
If not, how to I create an self-unpackager and self-starter program that use an temporary directory in the disk ? With WinRar ?
Thanx for help: dd
Dependency tracking is usually not perfect in exe generators. I don't
recall how good py2exe is at this. If you understand which of those
files will not be used by your program, you can safely delete them. A
bit of trial and error here if you are not sure. Unless you are using
floppies or dialup to transfer this tool, you should simply not worry
about the file size.
As for compression, just use an installer builder like Inno Setup http://www.jrsoftware.org/isinfo.php http://www.istool.org/default.aspx/
Hi !
Yes, it is. But that tool is designed for USB PenDrive usage.
The assessor is collect all tools it needed to see a machine(s) in the
checked corporation.
He/she needs little programs, because he need to store the results of
the checkings too, not the tools only.
So I need to minimalize the code size.
Thanx for help:
dd bo****@gmail.co m wrote: 11MB is seldom a concern for today's machine.
Durumdara wrote:
Hi !
I have a problem. I have a little tool that can get data about filesystems and wrote it in python.
The main user asked me a GUI for this software.
This user is needed a portable program, so I create this kind of the software with Py2Exe.
But it have very big size: 11 MB... :-(
The dist directory: 2006.02.21. 10:09 <DIR> . 2006.02.21. 10:09 <DIR> .. 2005.09.28. 12:41 77 824 bz2.pyd 2006.02.21. 10:09 0 dirlist.txt 2006.02.20. 12:51 611 384 library.zip 2006.02.15. 16:22 23 558 main.ico 2004.12.16. 17:22 348 160 MSVCR71.dll 2005.09.28. 12:41 1 867 776 python24.dll 2006.01.11. 12:19 102 400 pywintypes24.dl l 2005.09.28. 12:41 405 504 unicodedata.pyd 2005.09.28. 12:41 4 608 w9xpopen.exe 2006.01.11. 12:19 73 728 win32api.pyd 2006.01.11. 12:20 81 920 win32file.pyd 2006.01.11. 12:26 106 496 win32security.p yd 2006.01.10. 19:09 4 943 872 wxmsw26uh_vc.dl l 2006.02.20. 12:51 40 960 wxPyHDDirList.e xe 2005.09.28. 12:41 69 632 zlib.pyd 2006.01.10. 19:13 626 688 _controls_.pyd 2006.01.10. 19:12 696 320 _core_.pyd 2006.01.10. 19:13 364 544 _gdi_.pyd 2006.01.10. 19:13 491 520 _misc_.pyd 2006.01.10. 19:13 548 864 _windows_.pyd 20 file 11 485 758 byte
I need to have more compressed result. Can I compress dll-s, pyd-s with Py2Exe ? Can I decrease the total size with something ?
If not, how to I create an self-unpackager and self-starter program that use an temporary directory in the disk ? With WinRar ?
Thanx for help: dd
I doubt you can do much then as you mentioned you need GUI which is why
there is the GUI related dll in the list(takes a large chunk of it),
then the necessary python runtime.
However, even for USB pen, I don't think 11M is that much a big deal.
We have digicam that can produce file size like that so finding a large
pen drive is not much of an issue. Worse come to worse, convince him to
use a 2.5" USB drive container. It is a bit bigger than USB pen drive
but can give you 20G+ without external power, just as convenient as a
pen drive.
Durumdara wrote: Hi !
Yes, it is. But that tool is designed for USB PenDrive usage. The assessor is collect all tools it needed to see a machine(s) in the checked corporation. He/she needs little programs, because he need to store the results of the checkings too, not the tools only.
So I need to minimalize the code size.
Thanx for help: dd
bo****@gmail.co m wrote:
11MB is seldom a concern for today's machine.
Durumdara wrote:
Hi !
I have a problem. I have a little tool that can get data about filesystems and wrote it in python.
The main user asked me a GUI for this software.
This user is needed a portable program, so I create this kind of the software with Py2Exe.
But it have very big size: 11 MB... :-(
The dist directory: 2006.02.21. 10:09 <DIR> . 2006.02.21. 10:09 <DIR> .. 2005.09.28. 12:41 77 824 bz2.pyd 2006.02.21. 10:09 0 dirlist.txt 2006.02.20. 12:51 611 384 library.zip 2006.02.15. 16:22 23 558 main.ico 2004.12.16. 17:22 348 160 MSVCR71.dll 2005.09.28. 12:41 1 867 776 python24.dll 2006.01.11. 12:19 102 400 pywintypes24.dl l 2005.09.28. 12:41 405 504 unicodedata.pyd 2005.09.28. 12:41 4 608 w9xpopen.exe 2006.01.11. 12:19 73 728 win32api.pyd 2006.01.11. 12:20 81 920 win32file.pyd 2006.01.11. 12:26 106 496 win32security.p yd 2006.01.10. 19:09 4 943 872 wxmsw26uh_vc.dl l 2006.02.20. 12:51 40 960 wxPyHDDirList.e xe 2005.09.28. 12:41 69 632 zlib.pyd 2006.01.10. 19:13 626 688 _controls_.pyd 2006.01.10. 19:12 696 320 _core_.pyd 2006.01.10. 19:13 364 544 _gdi_.pyd 2006.01.10. 19:13 491 520 _misc_.pyd 2006.01.10. 19:13 548 864 _windows_.pyd 20 file 11 485 758 byte
I need to have more compressed result. Can I compress dll-s, pyd-s with Py2Exe ? Can I decrease the total size with something ?
If not, how to I create an self-unpackager and self-starter program that use an temporary directory in the disk ? With WinRar ?
Thanx for help: dd
Durumdara wrote: I need to have more compressed result. Can I compress dll-s, pyd-s with Py2Exe ? Can I decrease the total size with something ?
If not, how to I create an self-unpackager and self-starter program that use an temporary directory in the disk ? With WinRar ?
You can use PyInstaller ( http://pyinstaller.hpcf.upr.edu). PyInstaller easily
builds a single executable with everything inside it. It also optionally
compresses everything with UPX ( http://upx.sourceforge.net/) so to reduce the
size at the maximum.
There are also other choices that can be made. For instance, wxWidgets is
*HUGE*.
--
Giovanni Bajo
Durumdara wrote: But it have very big size: 11 MB... :-(
The dist directory: [snip relatively small files] 2005.09.28. 12:41 1 867 776 python24.dll [snip relatively small files] 2006.01.10. 19:09 4 943 872 wxmsw26uh_vc.dl l [snip relatively small files] 20 file 11 485 758 byte
I need to have more compressed result. Can I compress dll-s, pyd-s with Py2Exe ? Can I decrease the total size with something ?
I've snipped out the relatively small files above. Yes, true, some of
them consume about 0.5MB each.
It seems to me that your choice of GUI framework is a major cost here. I
have never used wxpython. Instead my GUIs are based on tkinter. What I
typically end up with is roughly 7MB. My last example ended up in 7.5MB.
Zipping the whole thing reduces that to 2.6MB. Is it completly out of
the question to have a compressed version of the tool on your memory
stick, and to decompress it on the examined computer before actually
running the tool?
/MiO
Durumdara wrote: Hi !
Yes, it is. But that tool is designed for USB PenDrive usage. The assessor is collect all tools it needed to see a machine(s) in the checked corporation. He/she needs little programs, because he need to store the results of the checkings too, not the tools only. [...]
Additional Python or wxPython tools packed using py2exe will only need a
few kilobytes if you all copy them to the same directory on the pen
drive. All these tools can share the same .pyd and .dll files.
-- Gerhard
Hi ! I've snipped out the relatively small files above. Yes, true, some of them consume about 0.5MB each.
It seems to me that your choice of GUI framework is a major cost here. I have never used wxpython. Instead my GUIs are based on tkinter. What I typically end up with is roughly 7MB. My last example ended up in 7.5MB. Zipping the whole thing reduces that to 2.6MB. Is it completly out of the question to have a compressed version of the tool on your memory stick, and to decompress it on the examined computer before actually running the tool?
/MiO
Yes, the wxPython use the big files, and win32api do it too...
I need them, but wxPython is changeable to tkinter, because it is use
only one special thing: a wx.GenericDirCt rl (the user can choose file or
directory with this control in same way).
The last (compressed) version is 5 MB. That is better !
Thanx: dd
Since the target is Windows only, consider using win32gui
(part of Mark Hammonds win32 extensions) calls to use
native Windows controls. That way you can eliminate
wxWindows altogether. If all you need is a file dialog,
it isn't very difficult.
-Larry Bates
Mikael Olofsson wrote: Durumdara wrote: But it have very big size: 11 MB... :-(
The dist directory: [snip relatively small files] 2005.09.28. 12:41 1 867 776 python24.dll [snip relatively small files] 2006.01.10. 19:09 4 943 872 wxmsw26uh_vc.dl l [snip relatively small files] 20 file 11 485 758 byte
I need to have more compressed result. Can I compress dll-s, pyd-s with Py2Exe ? Can I decrease the total size with something ?
I've snipped out the relatively small files above. Yes, true, some of them consume about 0.5MB each.
It seems to me that your choice of GUI framework is a major cost here. I have never used wxpython. Instead my GUIs are based on tkinter. What I typically end up with is roughly 7MB. My last example ended up in 7.5MB. Zipping the whole thing reduces that to 2.6MB. Is it completly out of the question to have a compressed version of the tool on your memory stick, and to decompress it on the examined computer before actually running the tool?
/MiO This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Thomas Heller |
last post by:
"Brad Clements" <bkc@murkworks.com> writes:
> Once again I apologize for posting this py2exe question in the ctypes list. ;-)
In the long run, this will be the wrong forum. I suggest
comp.lang.python (or should a py2exe mailing list be created?).
And I'm cc'ing to python-list.
>
> I need to ship a Windows service in py2exe, but I also want a
|
by: Shiperton Henethe |
last post by:
Dreamweaver 4
Hi
Can anyone recommend a decent utility for compressing
HTML that is safe - i.e. that *definitely* doesn't mess
with the appearance in any browsers.
I run a growing website whose pages are inexorably getting
too "heavy".
|
by: nickdu |
last post by:
Is there a tool that will merge XML documents? We also need the reverse, we
need to be able to create a Diff of two documents. What we're trying to do
is just store differences of documents at different levels of hierarchy in
our configuration store.
As an example, lets say at a certain hierarchy in our configuration store is
the following document:
<grid bgColor="Red" fgColor="Green" Width="200" Height="100">
<font name="Arial"...
|
by: CMM |
last post by:
Do the developers of Visual 2005 actuall use it??? There's lots of great
things in VS2005 (mostly related to the outstanding work done on the CLR)...
but in general the LITTLE THINGS totally drag it down.. especially the
slightly-improved-but-not-all-that-much IDE. I waited for 3 years for this?
Who's in charge of this mess?
1)
Editing a web form in the designer... I think I'm totally misunderstanding
the usage of CSS stylesheets and...
|
by: ash |
last post by:
i am writing this program (for exercise1-9 in k&r-2nd edition) which
removes extra spaces in string
example- "test string" will be "test string"
#include<stdio.h>
#include<string.h>
#include<conio.h>
main()
{
char str,st;
| |
by: porky008 |
last post by:
We are still going over pseudo code and we are working on arrays right
now. I am having some difficulty with the bubble sort algorithm. Can
some one give me a better example than this one? I do understand that
each pass the larger values are to drop to the bottom but the algorithm
is still throwing me off.
While the array A is not sorted
For K = 1 Step 1 To N - 1
If A A Then
Interchange A and A
End If
|
by: ab3331 |
last post by:
I need a tool that acts like a browser, but instead of actually
rendering a page, it explains in English exactly what rules it's
interpreting. This would make it simple to see which rules are
applied, which are ignored, which are inherited or not, which are
superceded, etc. This would be a huge aid in debugging pages. (I
currently have a page that is included by another page - it's actually
a menu - but it's rendered differently...
|
by: Anastasios Hatzis |
last post by:
I'm looking for a pattern where different client implementations can use the
same commands of some fictive tool ("foo") by accessing some kind of API.
Actually I have the need for such pattern for my own tool
(http://openswarm.sourceforge.net). I already started restructuring my code
to separate the actual command implementations from the command-line scripts
(which is optparser-based now) and have some ideas how to proceed. But
probably...
|
by: Marc Gravell |
last post by:
Maybe I'm having a dumb day...
I'm having some "fun" trying to force a tool-strip to trigger
validation, i.e. so that the last (bound) control being edited updates
the model with changes. Can anybody see what I am doing daft? The
"save" in this case writes the values into the Form's caption - if you
are mid-edit then the last committed value is used - which risks data
loss.
All I want to do is force validation, as though a regular...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |