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

Robert Kern robert.kern at gmail.com
Sat Mar 8 05:51:52 CET 2008


Jari Aalto wrote:
> * Fri 2008-03-07 Robert Kern <robert.kern at gmail.com> gmane.comp.python.general
> * Message-Id: fqsf3a$4lv$1 at ger.gmane.org
>> Jari Aalto wrote:
>>>     #!/usr/bin/python
>>>
>>>     from distutils.core import setup
>>>     import glob
>>>
>>>     setup(name='program',
> ...
>>>           scripts = ['program,py'],
>>>       )
>>> that the the result is:
>>>
>>>     /usr/bin/program
>>>
>>> instead of:
>>>
>>>     /usr/bin/program.py
>> The easiest and best way is to just rename the file in your source tree to 
>> "program" and be done with it.
> 
> Is there any other way? This is the source package that I would like
> to keep intact and just patch the setup.py

Not really, no. Why is it so important to only patch the setup.py file and not 
any others?

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco




More information about the Python-list mailing list