Revision 16 as of 2009-05-23 05:16:07

Clear message

py2exe is a module that makes it so you can compile Python code to Windows executables.

Linux compatibility

py2exe and NSIS through WINE (for making Windows executables) is handy, but py2exe produces invalid Win32 executables

Problem 1

Problem 2

See Also


Discussion

I'm wondering: Is there something like Py2Exe, but for Linux?

We have some Python code that we'd like clients to be able to run, but we don't want them to have to install Python.

I know that Python is a required install on Red Hat 9 and up, but I don't think it is a required install on Suse, or Mandrake, or yadda yadda yadda. So, I think this would be useful. If we had somethig like Py2Exe for Linux, then we can justify using Python here at work.

The question is: Does something like this exist right now?

No, we can't require our users to install something new. Everything has to just run, right out of the box, with zero installation.

Try googling for "freeze". It's in the Python distribution (in fact, there's a FAQ section called 1.4 Where is Freeze for Windows?, waddayamean, is there a Py2Exe for Linux ;)).

-- JohannesGijsbers

Heh! Well, I just never saw anything about Freeze online. I googled for "compile Python to executable" and stuff like that, for about 30 minutes, and never saw a single mention of Freeze. "If it's not on the net, it may well not exist," right?

So, Freeze will now have a place on the net: right here.

Score 1 for wiki. :)

-- LionKimbro 2004-08-30 03:43:57

Why dont you make one yourself, it's probably not that hard... -- anon

"probably"? Anon sounds like an optimist. -- RetrogradeOrbit

One other idea, still playing around with it, is pyinstaller. http://www.pyinstaller.org/. If you want a GUI for it, try PythonCard StandAloneBuilder, http://www.linux2000.org/pm.html. Seems like there might be some bugs, but some things seem to work seamlessly. --Alestan

Unable to edit the page? See the FrontPage for instructions.