为Windows编译wxPython应用程序;单EXE

编程入门 行业动态 更新时间:2024-10-22 11:43:57
本文介绍了为Windows编译wxPython应用程序;单EXE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

嗨 我浏览了档案,但由于有些消息可以追溯到一点,我 想确保 - py2exe仍然是城里编译Python脚本的最佳工具,以便在没有安装Python的Windows主机上运行,包括 wxWidgets / wxPython - 没有办法构建单个EXE,使部署更容易(如果多个文件需要构建,我需要构建一个安装程序,例如NSIS或 InnoSetup)? 谢谢。

Hi I browsed the archives, but since some messages date back a bit, I wanted to make sure that - py2exe is still the best tool in town to compile Python scripts to run on a Windows host that doesn''t have Python installed, including wxWidgets/wxPython - there''s no way to build a single EXE, to make deployment easier (if multiple files, I need to build an installer with eg. NSIS or InnoSetup)? Thank you.

推荐答案

Vincent Delporte写道: Vincent Delporte wrote: 嗨 我浏览档案,但由于有些消息可以追溯到一点,我想要确保 - py2exe仍然是城里编译Python脚本的最佳工具 在没有安装Python的Windows主机上运行,​​包括 wxWidget s / wxPython - 没有办法构建单个EXE,使部署更容易(如果多个文件是,我需要建立一个安装程序,例如。 NSIS或 InnoSetup)? 谢谢。 Hi I browsed the archives, but since some messages date back a bit, I wanted to make sure that - py2exe is still the best tool in town to compile Python scripts to run on a Windows host that doesn''t have Python installed, including wxWidgets/wxPython - there''s no way to build a single EXE, to make deployment easier (if multiple files, I need to build an installer with eg. NSIS or InnoSetup)? Thank you.

我有一个wxPython应用程序,我编译成一个EXE文件。然后只需要一个支持文件就可以获得一个支持文件:一个MS DLL(一旦分发,你将需要 不需要更新)。 哦,对于w9x的支持,还有一个额外的文件,popenw9x.exe(或者像这样的东西),你可能会忘记,如果你不是$> 希望支持这个。 好​​吧,好吧,这就是3个文件... windows的图标也是额外的, 任何其他设置你希望添加的/ ini / datafiles以及 ''普通''文件打开。 那么我所做的就是把它捆绑起来作为一个自解压档案,使用 7-zip,默认情况下将其提取到目录的子目录中 复制SEA-exe。 br /> Voila,简单易行,无需安装人员。 为我工作;不知道它是否足以满足您的需求。 (哦, 和创建SEA-exe你可以自动化,如果从setup.py 但是我还没有打扰) 欢呼和祝你好运, --Tim

Hi, I have a wxPython app, which I compile into one EXE file. Then there''s just 1 support file needed: a MS DLL (which, once distributed, you will not need to update). Oh, and for w9x support there''s an extra file, popenw9x.exe (or something like that) which you can probably forget about if you don''t wish to support that. Well, OK, that makes 3 files... Icons for windows are extra too, and any other setup/ini/datafiles you wish to add and that are opened as ''normal'' files too. So what I do then is bundle it up as an self-extracting-archives, using 7-zip, which by default extracts into a sub-directory of the directory where you copy the SEA-exe. Voila, simple and easy, no installer required. Works for me; dunno if it''s good enough for your needs as well. (Oh, and creating the SEA-exe you can probably automate if from the setup.py but I haven''t bothered yet) Cheers and good luck, --Tim

2006年8月13日13 :46:14 -0700,Tim N. van der Leeuw < ti ************* @ nl.unisyswrote: On 13 Aug 2006 13:46:14 -0700, "Tim N. van der Leeuw" <ti*************@nl.unisyswrote: >我有一个wxPython应用程序,我将其编译成一个EXE文件。然后只需要一个支持文件:一个MS DLL(一旦分发,你将不需要更新)。 >I have a wxPython app, which I compile into one EXE file. Then there''sjust 1 support file needed: a MS DLL (which, once distributed, you willnot need to update).

好​​的。所以你使用py2exe将Python应用程序编译成EXE,然后 使用例如。 7Zip将所有文件合并到一个EXE中,即 1.在用户验证的目录中解压缩 2.完成后,运行Python EXE?

OK. So you compile the Python app into an EXE using py2exe, and then use eg. 7Zip to combine all the files into a single EXE, that 1. uncompresses itself in the directory validated by the user 2. when done, runs the Python EXE?

Vincent Delporte写道: < snip> Vincent Delporte wrote: <snip> - 没有办法构建单个EXE,使部署更容易(如果多个文件,我需要构建一个安装程序,例如NSIS或 InnoSetup)? - there''s no way to build a single EXE, to make deployment easier (if multiple files, I need to build an installer with eg. NSIS or InnoSetup)?

我正在使用InnoSetup。包含的示例脚本(我相信py2exe)对于简单的应用程序来说足够了.b $ b。我刚修改了几行,我有一个 整洁的Windows安装程序。 Satya - 通过 www.teranews

I am using InnoSetup. The included example script (I believe in py2exe) is adequate for simple applications. I just modified a few lines and I had a neat Windows Installer. Satya -- Posted via a free Usenet account from www.teranews

更多推荐

为Windows编译wxPython应用程序;单EXE

本文发布于:2023-11-02 17:34:08,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1552988.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   Windows   wxPython   EXE

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!