Monday, January 10, 2011

How to create standalone python apps?

You might have to run your applications in your customer infrastructure but you might not want to give your recipes (python source code) so here are the alternatives depending on your OS:
On linux, pyinstaller works quite well but you have to generate it on the same distribution.
Here are the steps:
  1. download latest version
  2. python Configure.py
  3. python Makespec.py /path/to/yourscript.py
  4. python Build.py /path/to/yourscript.spec
  5. start app: yourscript/dist/yourscript/yourscript(binary executable)
(*) Freeze instructions:
  1. svn checkout http://svn.python.org/projects/python/trunk/Tools/freeze/
  2. python freeze/freeze.py yourscript.py
  3. make

No comments:

Post a Comment