Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Thomas Heller Newsgroups: comp.lang.python Subject: Re: Distributing python applications as a zip file Date: Wed, 23 Jul 2014 10:07:53 +0200 Lines: 16 Message-ID: References: <53cf38c2$0$29897$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net HldSLjPL6tUzfgqCkyTIoQjFXPQuloi8Sl/H3+kcu/CEIAv4k= Cancel-Lock: sha1:OvarMpK0G0YTrpuS+GL0a9GPFUI= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: <53cf38c2$0$29897$c3e8da3$5496439d@news.astraweb.com> Xref: csiph.com comp.lang.python:75070 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