[Pythonmac-SIG] Status of Python 3.0 for Mac?

Conan C. Albrecht conan at warp.byu.edu
Tue Dec 16 18:10:23 CET 2008


You are all right in correcting me.  Here's a revised version of what  
to have to make multiple versions work:

If I type ls -l /usr/local/bin, I get the following in the list:

lrwxr-xr-x  1 root  wheel      72 Dec 16 10:05 python -> ../../../ 
Library/Frameworks/Python.framework/Versions/Current/bin/python
lrwxr-xr-x  1 root  wheel      71 Dec 16 10:05 pydoc -> ../../../ 
Library/Frameworks/Python.framework/Versions/Current/bin/pydoc
lrwxr-xr-x  1 root  wheel      79 Dec 16 10:05 python-config - 
 > ../../../Library/Frameworks/Python.framework/Versions/Current/bin/ 
python-config
lrwxr-xr-x  1 root  wheel      73 Dec 16 10:05 pythonw -> ../../../ 
Library/Frameworks/Python.framework/Versions/Current/bin/pythonw

Note that they all go to the "Current" version.  Then, in the /Library/ 
Frameworks/Python.framework/Versions directory, I have:

drwxrwxr-x  10 root  admin  340 Oct  1 17:52 2.6
drwxr-xr-x   9 root  admin  306 Dec  9 14:01 3.0
lrwxr-xr-x   1 root  admin    3 Dec 16 10:06 Current -> 2.6

Note that Current goes to 2.6.  To switch the "active" version of  
Python, just switch the symlink from 2.6 to 3.0.  That should switch  
the system.

____________________________________
Conan C. Albrecht, Ph.D.
Information Systems Department
Brigham Young University
Email: conan at warp.byu.edu
Phone: +1-801-805-1615
Web/Blog: http://warp.byu.edu/

On Dec 15, 2008, at 17:33, Christopher Barker wrote:

> Dav Clark wrote:
>>> It's easy to have two or three Python installations.  They all sit  
>>> in different directories and don't mess with each other.
>> Not entirely true.  For example, anything that compiles against  
>> python with a bare "-framework Python" flag will grab the (I think)  
>> Current dir from /Library/Frameworks/Python.framework/Versions
>
> True, but "Current" is just a symlink to a particular version - it's  
> easy to put it back -- that's what I've done with 2.6 -- it's  
> installed, but not set as current.
>
> -Chris
>
>
>
> -- 
> Christopher Barker, Ph.D.
> Oceanographer
>
> Emergency Response Division
> NOAA/NOS/OR&R            (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
> _______________________________________________
> Pythonmac-SIG maillist  -  Pythonmac-SIG at python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2727 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20081216/51b33c9e/attachment.bin>


More information about the Pythonmac-SIG mailing list