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 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 > pkg_

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 ba

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 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.

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: htt

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 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 > steve@runes:~$ chmod

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 > intr

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 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.

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 e

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 print

Re: Distributing Python Applications

2007-02-10 Thread Gabriel Genellina
En Sat, 10 Feb 2007 09:21:29 -0300, <[EMAIL PROTECTED]> escribió: > It has been such a painful thing for me. Ouch... why was that? Programming in Python, or using py2exe? > As I made a program to > encrypt files, now I want to distribute that program over other > computers. I created .EXE file w

Re: Distributing Python Applications

2007-02-10 Thread James Stroud
[EMAIL PROTECTED] wrote: > Hello, > > It has been such a painful thing for me. As I made a program to > encrypt files, now I want to distribute that program over other > computers. I created .EXE file with py2exe but the "dist" folder makes > around 2 mb and it restricts for the python DLL to be w

Distributing Python Applications

2007-02-10 Thread Finger . Octopus
Hello, It has been such a painful thing for me. As I made a program to encrypt files, now I want to distribute that program over other computers. I created .EXE file with py2exe but the "dist" folder makes around 2 mb and it restricts for the python DLL to be within the same folder. Is there any e