Re: distutils - Is is possible to install without the .py extensions

2008-03-08 Thread Jari Aalto
* Fri 2008-03-07 Robert Kern <[EMAIL PROTECTED]> gmane.comp.python.general * Message-Id: [EMAIL PROTECTED] setup(name='program', >> ... scripts = ['program,py'], ) that the the result is: /usr/bin/program instead of: /us

Re: distutils - Is is possible to install without the .py extensions

2008-03-07 Thread Jari Aalto
* Fri 2008-03-07 Robert Kern <[EMAIL PROTECTED]> gmane.comp.python.general * Message-Id: [EMAIL PROTECTED] > Jari Aalto wrote: >> #!/usr/bin/python >> >> from distutils.core import setup >> import glob >> >> setup(name='

distutils - Is is possible to install without the .py extensions

2008-03-07 Thread Jari Aalto
Given following setup.py stanza: #!/usr/bin/python from distutils.core import setup import glob setup(name='program', description='', keywords='', version='', url='', download_url='', license='', author='',

Re: how to improve simple python shell script (to compile list of files)

2005-10-15 Thread Jari Aalto
"Chris F.A. Johnson" <[EMAIL PROTECTED]> writes: > On 2005-10-15, Jari Aalto wrote: >Don't indent: > > function compile () > { > python -c ' > import os, sys, py_compile; > i = 0; > for arg in sys.argv: > file = os

Re: how to improve simple python shell script (to compile list of files)

2005-10-15 Thread Jari Aalto
"Fredrik Lundh" <[EMAIL PROTECTED]> writes: > Jari Aalto wrote: > | > Please suggest comments how can I make this script to work | > from bash. > > replace it with a call to the compileall module? > > $ python -mcompileall [directory...] Thanks, but th

how to improve simple python shell script (to compile list of files)

2005-10-15 Thread Jari Aalto
[Keep CC, thank you] Please suggest comments how can I make this script to work from bash. Also how can I skip better the [0] argument from command line without hte extra variable i? #!/bin/bash function compile () { python -c ' import os, sys, py_compile; i