Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where can I find a good tutorial for py2exe? [closed]

Can somebody point me at a good tutorial for py2exe? I've read over the official tutorial but it is rather light on details, compared to all the options one can use when building an executable out of a python script. For the record, my python script uses Python 2.5.2, wxPython/wxWidgets 2.8 and MySQLdb 1.2.2; so if you have specific tips for py2exe with those packages that would be much appreciated (and yes, I've seen the Py2EXE and wxPython page).

like image 202
Manzabar Avatar asked Oct 06 '08 21:10

Manzabar


People also ask

Which is better PyInstaller or py2exe?

In PyInstaller it is easy to create one exe, By default both create a bunch of exes & dlls. In py2exe its easier to embed manifest file in exe, useful for run as administrator mode in windows vista and beyond. Pyinstaller is modular and has a feature of hooks to include files in the build that you like.

Is py2exe safe?

Is py2exe safe to use? The python package py2exe was scanned for known vulnerabilities and missing license, and no issues were found. Thus the package was deemed as safe to use.


2 Answers

Regarding "Py2EXE and wxPython", the page mentions the import statement "from wxPython.wx import *". This is the old wxPython (several years old, I think). In my app, I just do "import wx", and I don't have any major troubles.

I have one tip for wxPython and py2exe: you need a manifest if you want your app to look any good on Windows XP. This email has details: http://mail.python.org/pipermail/python-list/2004-June/268126.html

like image 134
John Fouhy Avatar answered Sep 17 '22 15:09

John Fouhy


I'm going to release py2exe GUI so that you can easy compile your apps without writing setup scripts. More info here

like image 30
Kirill Titov Avatar answered Sep 20 '22 15:09

Kirill Titov