bittorent如何编译为exe

发布于 2024-09-27 10:26:07 字数 280 浏览 5 评论 0原文

众所周知,bittorrent 是用 python 程序编写的。每当我下载并安装 bittorrent.exe 时,我从未找到与程序文件关联的任何文件(如 dll 等),我的意思是每当我进入 c:\program files\bittorrent 时,我只发现一个名为 bittorrent.exe 的文件,我想知道如何这个程序被编译为 exe ,而每当我想构建独立的 python exe 时,我都会使用 py2exe ,我发现输出由近 25mb 组成,其中包含所有包含的库文件。 谁能告诉我bittorent程序如何构建成exe的详细结构。

As all know bittorrent is written in python program. whenever i download and install the bittorrent.exe, I never found any file(like dll etc) associated in program files i mean whenever i go to c:\program files\bittorrent i found only single file called bittorrent.exe, i wonder how this program is compiled to exe , whereas whenever i want to build standalone python exe i use py2exe and i found the output consists of nearly 25mb, which consists of all library file included.
Can anybody will tell me the detail structure how the bittorent program is build into exe.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

梦归所梦 2024-10-04 10:26:07

实际上 BitTorrent 是一个协议。实现 BitTorrent 的原始程序可能是用 Python 编写的,但现在情况并非如此。

其中很多现在都是用编译语言编码的,Transmission 是我最熟悉的一种(Ubuntu 自带的)——它使用 gcc。

Actually bittorrent is a protocol. The original program which implemented bittorrent may have been written in Python but that's not the case now.

A lot of them now are coded in compiled languages, Transmission being the one I'm most familiar with (comes with Ubuntu) - it uses gcc.

甜扑 2024-10-04 10:26:07

您指的是来自 bittorrent.com 的“官方”BitTorrent 客户端,对吗?我找不到最新的源代码,但旧版本是使用 py2exe 构建的(请参阅 winsetup.py 客户端 v4.26)。我无法解释为什么你的 py2exe 输出如此之大,但源代码中包含的 setup.py 文件似乎排除了很多模块。也许您使用了适用于 Linux/Unix 的 setup.py 文件。

如果您指的不是客户端 GUI,您应该知道 BitTorrent 实际上只是协议,并且存在多个实现它的库和 GUI。

You mean the, umm, "official" BitTorrent client from bittorrent.com, right? I couldn't find the latest source code but older versions were built using py2exe (see winsetup.py of the client v4.26). I can't explain why your py2exe output is so huge, but the setup.py file included in the sources seems to exclude a lot of modules. Maybe you used the setup.py file that was intended for Linux/Unix.

If you didn't mean that client GUI, you should know that BitTorrent is actually just the protocol, and there exist multiple libraries and GUIs that implement it.

梨涡 2024-10-04 10:26:07

看看http://www.bittorrent.com/company/jobs。他们正在寻找 C/C++ 开发人员……而不是 python。

Take a look at http://www.bittorrent.com/company/jobs. They are looking for C/C++ developers... not python.

请远离我 2024-10-04 10:26:07

查看您使用的 BitTorrent 客户端的文档。有多个 Python 客户端,每个客户端的功能都不同。

Look in the documentation for the BitTorrent client that you use. There are several Python clients and each one does things differently.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文