Distributing python applications as a zip file

Thomas Heller theller at ctypes.org
Wed Jul 23 04:07:53 EDT 2014


Am 23.07.2014 06:23, schrieb Steven D'Aprano:
> A little known feature of Python: you can wrap your Python application in
> a zip file and distribute it as a single file. The trick to make it
> runnable is to put your main function inside a file called __main__.py
> inside the zip file.

Look here:

http://legacy.python.org/dev/peps/pep-0441/
https://pypi.python.org/pypi/pyzzer
https://pypi.python.org/pypi/pyzaa/0.1.0

Or write your own little utility to create such a thing, it's not 
complicated.

Thomas



More information about the Python-list mailing list