[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: installation of scripts in the brave new Python world



On Tue, 2006-06-27 at 20:22 -0300, Gustavo Franco wrote:
> On 6/27/06, Carlo Segre <segre@iit.edu> wrote:
> >
> > Hello All:
> >
> > As I was trying to implement the new Python policy, I noticed an effect
> > which is not directly addressed in the policy.  That is when a package
> > contains modules and scripts, there have to be special precautions taken
> > to make sure that the scripts are not installed with a first line of
> >
> >         #!/usr/bin/pythonX.Y
> >
> > instead of #!/usr/bin/python
> >
> > (...)
> 
> How it's that different than patch the source packages to
> s/python2.4/python/ as we do actually in some cases or replacing to
> python2.3 when it isn't 2.4 compatible code?

distutils rewrites scripts at installation time. Patching the source
package will not work.

http://docs.python.org/dist/node10.html
-- 
Joe Wreschnig <piman@sacredchao.net>

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: