Re: Distributing python applications as a zip file

2014-07-24 Thread Alan
On Wednesday, July 23, 2014 4:43:11 AM UTC-4, Leo jay wrote: But if you use windows and you happen to use multiprocessing, please be aware of this bug I encountered several years ago. https://mail.python.org/pipermail/python-dev/2011-December/115071.html It looks like this was fixed for 3.2.

Re: Distributing python applications as a zip file

2014-07-23 Thread Tim Golden
On 23/07/2014 06:30, Gary Herron wrote: On 07/22/2014 09:23 PM, Steven D'Aprano wrote: A little known feature of Python: you can wrap your Python application in a zip file and distribute it as a single file. Really! 20 years of Pythoning, and I'd never seen this! When was this

Re: Distributing python applications as a zip file

2014-07-23 Thread Chris Angelico
On Wed, Jul 23, 2014 at 2:23 PM, Steven D'Aprano st...@pearwood.info wrote: On Linux, you can even hack the zip file to include a shebang line! steve@runes:~$ cat appl #!/usr/bin/env python # This is a Python application stored in a ZIP archive. steve@runes:~$ cat appl.zip appl

Re: Distributing python applications as a zip file

2014-07-23 Thread Thomas Heller
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:

Re: Distributing python applications as a zip file

2014-07-23 Thread Leo Jay
On Wed, Jul 23, 2014 at 12:23 PM, Steven D'Aprano st...@pearwood.info wrote: 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

Re: Distributing python applications as a zip file

2014-07-23 Thread Burak Arslan
On 07/23/14 07:23, Steven D'Aprano wrote: 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. Here's a basic

Re: Distributing python applications as a zip file

2014-07-23 Thread Steven D'Aprano
On Wed, 23 Jul 2014 15:23:10 +0300, Burak Arslan wrote: On 07/23/14 07:23, Steven D'Aprano wrote: A little known feature of Python: you can wrap your Python application in a zip file and distribute it as a single file. [...] does it support package_data? or more specifically, does

Distributing python applications as a zip file

2014-07-22 Thread 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. Here's a basic example: steve@runes:~$ cat __main__.py

Re: Distributing python applications as a zip file

2014-07-22 Thread Gary Herron
On 07/22/2014 09:23 PM, Steven D'Aprano wrote: 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. Here's a basic

Re: Distributing python applications as a zip file

2014-07-22 Thread Chris Rebert
On Tue, Jul 22, 2014 at 9:23 PM, Steven D'Aprano st...@pearwood.info wrote: 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