tags:

views:

939

answers:

5

Are there any alternatives to py2exe?

+9  A: 

cx_Freeze is cross-platform and does the same, or you could use py2app, which works on mac only.

Reshure
works great, but how can i set an icon for my exe?
daniels
You could take a look at the icon option in the setup script.
Reshure
+11  A: 

pyInstaller is cross-platform and very powerful, with many third-party packages (matplotlib, numpy, PyQT4, ...) specially supported "out of the box", support for eggs, code-signing on Windows (and a couple other Windows-only goodies, optional binary packing... the works!-) The one big issue: the last "released" version, 1.3, is ages-old -- you absolutely must install the SVN trunk version, svn co http://svn.pyinstaller.org/trunk pyinstaller (or the 1.4 pre-release, but I haven't tested that one). A fair summary of its capabilities as of 6 months ago is here (in English, despite the Italian URL;-).

Alex Martelli
pyInstaller looked like the most robust of those I tried recently (pyInstaller, cx_Freeze, bbfreeze). Additionally to what Alex mentioned, offers a "no-console" option for Windows, correctly includes the modules, well-documented, is installed separately from the Python installation so you can switch between versions if need be.
RedGlyph
unfortunately no python3 support yet. the one python app i want to generate an exe for i happened to write in python3.1 :P
Matt Joiner
+2  A: 

bbfreeze claims to works on Windows and UNIX, but not on OS X. It doesn't seem to be actively developed anymore, though.

Ville Laurikari
`bfreeze` and the programs it creates are unfortunately detected as malicious by anti-virus software (Norton in particular). It is a problem for users since you can hardly tell them to turn off such and such feature of their system protection. For the record, I personally hate those experimental anti-virus detection features.
RedGlyph
bbfreeze appears to have support for OSX on its trunk ("tip") version, though not in a released version. And I haven't tested it myself.
Peter Hansen
According to virustotal.com the executable that bbfreeze created for me is not being picked up by Norton as a virus. (Of course it could still be detected during runtime due to some "Behavioral Protection" magic.)
Kalmi
+5  A: 

Here's a list of them.

Forest
A: 

Jump generates executable Jar files which can be used on any platform that have a Java runtime installed.

lhahne