小工具 - 但非常大的尺寸...... :-( [英] Little tool - but very big size... :-(

查看:52
本文介绍了小工具 - 但非常大的尺寸...... :-(的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!


我有一个问题。

我有一个小工具可以获取有关文件系统的数据并将其写入

python。


主要用户问我这个软件的GUI。


这个用户需要一个便携式程序,所以我使用Py2Exe创建这种

软件。


但它有非常大的尺寸:11 MB ... :-(


dist目录:

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.dll

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.pyd

2006.01.10。 19:09 4 943 872 wxmsw26uh_vc.dll

2006.02.20。 12:51 40 960 wxPyHDDirList.exe

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


Py2Exe吗?

我可以用一些东西来减小总尺寸吗?


如果没有,如何创建一个自动解包器和自启动程序,

使用磁盘中的临时目录?使用WinRar?


Thanx寻求帮助:

dd

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.dll
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.pyd
2006.01.10. 19:09 4 943 872 wxmsw26uh_vc.dll
2006.02.20. 12:51 40 960 wxPyHDDirList.exe
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

推荐答案

11MB很少关注今天的机器。


Durumdara写道:
11MB is seldom a concern for today''s machine.

Durumdara wrote:
嗨!

我有一个问题。
我有一个小工具,可以获取有关文件系统的数据,并在
python中编写。

主要用户问我这个软件的GUI。

这个用户需要一个便携式程序,所以我用Py2Exe创建了这种软件。

但它有很大的尺寸:11 MB ...: - (

目录:
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.dll
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.pyd
2006.01.10。 19:09 4 943 872 wxmsw26uh_vc.dll
2006.02.20。 12:51 40 960 wxPyHDDirList.exe
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

我需要更多的压缩结果。我可以使用Py2Exe来压缩dll-s,pyd-s吗?
我可以用一些东西来减小总大小吗?

如果没有,我如何创建一个自我解包器和使用磁盘中的临时目录的自启动程序?使用WinRar?

Thanx求助:
dd
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.dll
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.pyd
2006.01.10. 19:09 4 943 872 wxmsw26uh_vc.dll
2006.02.20. 12:51 40 960 wxPyHDDirList.exe
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






依赖跟踪通常不完美exe发生器。我不记得
回想起py2exe有多好。如果您了解程序将不会使用哪些
文件,则可以安全地删除它们。如果你不确定的话,这里有一个试验和错误的
。除非您使用

软盘或拨号来传输此工具,否则您根本不必担心

关于文件大小。


至于压缩,只需使用Inno Setup等安装程序构建器
http:// www.jrsoftware.org/isinfo.php
http: //www.istool.org/default.aspx/

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/


嗨!


是, 它是。但该工具专为USB PenDrive使用而设计。

评估员收集所有工具,以便在

托运公司中查看机器。

他/她需要很少的程序,因为他需要存储检查结果,而不是工具。


所以我需要最小化代码大小。


Thanx求助:

dd

bo **** @ gmail.com 写道:
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.com wrote:
11MB很少关注今天的机器。
Durumdara写道:

11MB is seldom a concern for today''s machine.

Durumdara wrote:

嗨!

我有一个问题。
我有一个小工具可以获取有关文件系统的数据并将其写在
python中。

主要用户问我这个软件的GUI。

这个用户需要一个便携式程序,所以我用Py2Exe创建了这种软件。

但它有很大的尺寸:11 MB ...: - (

分配方式结果:
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.dll
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.pyd
2006.01.10。 19:09 4 943 872 wxmsw26uh_vc.dll
2006.02.20。 12:51 40 960 wxPyHDDirList.exe
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

我需要更多的压缩结果。我可以使用Py2Exe来压缩dll-s,pyd-s吗?
我可以用一些东西来减小总大小吗?

如果没有,我如何创建一个自我解包器和使用磁盘中的临时目录的自启动程序?使用WinRar?

Thanx寻求帮助:
dd
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.dll
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.pyd
2006.01.10. 19:09 4 943 872 wxmsw26uh_vc.dll
2006.02.20. 12:51 40 960 wxPyHDDirList.exe
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







这篇关于小工具 - 但非常大的尺寸...... :-(的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆