Cross-platform alternative to py2exe

xorsyst picture xorsyst · Jan 27, 2012 · Viewed 28k times · Source

py2exe is great, and I use it whenever I want to package up a python program to run on a Windows system.

My question is, is there an equivalent tool that I can use to package up the program on Windows, but that I can then run on Linux?

Answer

BergmannF picture BergmannF · Jan 27, 2012

here is also PyInstaller that supports Linux, MacOS and Windows - I have not used it (yet) so I don't know if you can package stuff on windows for linux, but glancing over the manual it seems to be possible.

EDIT: The FAQ states explicitly that you can not create a windows package from linux and no mac os package from linux neither - there is nothing about creating a linux package from the other two sources, but it might not work.

EDIT2: After googling a bit I found cx_freeze which might also be worth a look.