duelling pythons

Michael Hudson mwh at python.net
Fri Apr 5 04:28:02 EST 2002


Andy Gimblett <gimbo at ftech.net> writes:

> On Wed, Apr 03, 2002 at 09:40:45PM +0000, Michael Hudson wrote:
> > Tobias Klausmann <klausman-un030402 at tuts.net> writes:
> > 
> > > So far, I've only written libraries/modules (no shebang) or console
> > > apps that are at least semi-interactive. But if I'd write some such
> > > utility that might run cronned, I'd surely stumble across the system
> > > where cron doesn't know about /usr/local/bin/python15 =)
> > 
> > The distutils can help here.
> 
> How can distutils help with the problem of what to put on the first
> line of my scripts?

Because if you go

python setup.py install_scripts

said scripts get their first lines munged to point to the python used
to install them.

Cheers,
M.

-- 
58. Fools ignore complexity. Pragmatists suffer it. Some can avoid
    it. Geniuses remove it.
  -- Alan Perlis, http://www.cs.yale.edu/homes/perlis-alan/quotes.html



More information about the Python-list mailing list