views:

280

answers:

3

Guys, I have much python code in modules which are resides in several python packages and now I need to create single python executable module or file which will include all these files, so it will be working on windows and on linux servers. What are possible solutions and how this can be done?

+2  A: 

Maybe py2exe can help you ..

py2exe is a Python Distutils extension which converts Python scripts into executable Windows programs, able to run without requiring a Python installation.

Tutorial > http://www.py2exe.org/index.cgi/Tutorial

The MYYN
thank you and it obviously can help for windows but what about linux?Do you know if there is way to have one application but support several operation system?
yart
+1  A: 

For windows use py2exe

For linux use pyinstaller

For Mac use py2app

using these you can have a setup.py which based on os will build the final binary.

I have tried all three and they work well, or you can use cx_freeze they claim to be cross-platform

Anurag Uniyal
PyInstaller works fine on Windows.
mavnn
@mavnn but I have found py2exe much better
Anurag Uniyal