Re: compile shebang into pyc file

2005-04-28 Thread Joerg Schuster
> so you're saying that the set of people that can deal with > no more than one > file at a time but knows how to install and configure Python > (which in itself > comes with a few thousand files) is larger than zero? Take me as an example: Very often, I needed software that could solve a specific

Re: compile shebang into pyc file

2005-04-27 Thread rbt
Fredrik Lundh wrote: Joerg Schuster wrote: > #!/usr/bin/env python > import app Yes, of course this is a possibility. But it implies having (or giving away) two files. yeah, think of all the disk space you'll waste! Because if you have two files, you need a third one: a README that tells you what

Re: compile shebang into pyc file

2005-04-27 Thread Grant Edwards
On 2005-04-27, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > so you're saying that the set of people that can deal with no > more than one file at a time but knows how to install and > configure Python (which in itself comes with a few thousand > files) is larger than zero? There are a lot of Linux

Re: compile shebang into pyc file

2005-04-27 Thread Fredrik Lundh
Joerg Schuster wrote: > #!/usr/bin/env python > import app Yes, of course this is a possibility. But it implies having (or giving away) two files. yeah, think of all the disk space you'll waste! Because if you have two files, you need a third one: a README that tells you what to do with the two fil

Re: compile shebang into pyc file

2005-04-27 Thread Steve M
I just happened across the page linked to below, and remembered this thread, and, well... here you go: http://www.lyra.org/greg/python/ Executable .pyc files Ever wanted to drop a .pyc file right into your web server's cgi-bin directory? Frustrated because the OS doesn't know what to do with

Re: compile shebang into pyc file

2005-04-27 Thread Jp Calderone
On Wed, 27 Apr 2005 10:37:11 -0400, Michael Soulier <[EMAIL PROTECTED]> wrote: On 26 Apr 2005 18:15:51 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Is there some reason why you want to run the .pyc file, rather than the .py file? If you start the script with a. It's more efficient, since the

Re: compile shebang into pyc file

2005-04-27 Thread Joerg Schuster
> #!/usr/bin/env python > import app Yes, of course this is a possibility. But it implies having (or giving away) two files. I think having one file is always better than having two files. Because if you have two files, you need a third one: a README that tells you what to do with the two files a

Re: compile shebang into pyc file

2005-04-27 Thread Fredrik Lundh
Michael Soulier wrote: > Is there some reason why you want to run the .pyc file, rather than the > .py file? If you start the script with a. It's more efficient, since the code doesn't need to be compiled before it's run. b. What if you want to ship closed-source? #!/usr/bin/env python import

Re: compile shebang into pyc file

2005-04-27 Thread Michael Soulier
On 26 Apr 2005 18:15:51 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Is there some reason why you want to run the .pyc file, rather than the > .py file? If you start the script with a. It's more efficient, since the code doesn't need to be compiled before it's run. b. What if you want to

Re: compile shebang into pyc file

2005-04-26 Thread [EMAIL PROTECTED]
Is there some reason why you want to run the .pyc file, rather than the .py file? If you start the script with #! /usr/bin/env python Then if the file has the execution permission set, typing the file name (foo.py) will make the script call up the Python interpreter on its own. -- http://mail.p

Re: compile shebang into pyc file

2005-04-26 Thread Jp Calderone
On 26 Apr 2005 08:19:43 -0700, Joerg Schuster <[EMAIL PROTECTED]> wrote: Hello, is there a way to compile a python file foo.py to foo.pyc (or foo.pyo) such that foo.pyc can be run with 'foo.pyc' (as opposed to 'python foo.pyc') on the command line? No. However, on Linux, read up on /proc/sys/fs/b

compile shebang into pyc file

2005-04-26 Thread Joerg Schuster
Hello, is there a way to compile a python file foo.py to foo.pyc (or foo.pyo) such that foo.pyc can be run with 'foo.pyc' (as opposed to 'python foo.pyc') on the command line? Jörg Schuster -- http://mail.python.org/mailman/listinfo/python-list