[Pythonmac-SIG] Python 2.4.1 not replacing earlier versions.

Chris Barker Chris.Barker at noaa.gov
Sat Sep 3 01:15:28 CEST 2005


Bob Ippolito wrote:
>> I really wish specifying the version would become standard practice in
>> python development.
> 
> That cuts both ways, for a lot of scripts you don't give a damn which  
> python it is and changing the hash-bang every time you upgrade is a  pain.

True. I actually make a choice for a given script. If it's really basic 
python, then I just use "python", but if it uses a bunch of external 
modules, each of which needs a compatible version anyway, changing the 
#! line on the top level script is the least of your worries.

Also, I tend to keep old versions of python around when I install new 
ones, so all the old stuff just keeps running.

> If you use distutils to install your scripts, your job is done.  It  
> translates #!/usr/bin/env python to #!/usr/local/bin/python2.4 or  
> whatever is the appropriate way to point to the exact same python  that 
> was used for distutils.

Cool! It had never dawned upon me to use distutils to install scripts, 
I've only used it for modules.

As usual, Bob, you're a font of useful knowledge.

-Chris



-- 
Christopher Barker, Ph.D.
Oceanographer
                                      		
NOAA/OR&R/HAZMAT         (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov


More information about the Pythonmac-SIG mailing list