[Pythonmac-SIG] Status of Python 3.0 for Mac?
Ken Mankoff
mankoff at gmail.com
Mon Dec 15 16:54:59 CET 2008
My technique is to not change the file system at all. I use PATH:
export PATH=/opt/python/2.5.2/Framework/Python.framework/Versions/2.5/bin/python:$PATH
And then invoke with
#!/usr/bin/env python
And now multiple people on the same system can use multiple
versions, or I can have one Terminal.app window using one version
and another using another version for testing.
-k.
On Mon, 15 Dec 2008, Conan C. Albrecht wrote:
> It's easy to have two or three Python installations. They all sit in
> different directories and don't mess with each other.
>
> The trick is to symlink the one you want to use in /usr/local/bin. You can
> actually look at where they are linked by typing "ls -l
> /usr/local/bin/python*" at the terminal.
>
> To change the link, type:
>
> sudo ln -sf /Library/Frameworks/Python.framework/Versions/3.0/bin/python3.0
> /usr/local/bin/python
>
> The above line will make 3.0 your standard python installation. It's just a
> link, so you can do this as many times as you want to change to a different
> version.
>
> ____________________________________
> 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 07:53, Ken Mankoff wrote:
>
>> On Mon, 15 Dec 2008, Nicholas Cole wrote:
>>
>>> On Sun, Dec 14, 2008 at 4:36 PM, Kevin Walzer <kw at codebykevin.com> wrote:
>>>
>>>> I'm curious who maintains the Mac builds of Python these days. It's not
>>>> hard to build from source, of course, and that's what I do...but the
>>>> binary installer is convenient for many people.
>>>
>>> I want to install 3.0 to experiment with all the new features, but I don't
>>> want to do anything horrible to my default Leopard install, and I'd like
>>> to be able to remove 3.0 easily. What's the most sensible way of doing
>>> this? Setting a --prefix of /opt/python3.0 , for example, or just using
>>> the default prefix and using make altinstall?
>>>
>>> What are others doing?
>>
>> I've had success with multiple python installs setting a custom --prefix. I
>> wrote what I did here:
>> http://spacebit.org/2008/10/26/python-and-wxpython
>>
>> -k.
>> _______________________________________________
>> Pythonmac-SIG maillist - Pythonmac-SIG at python.org
>> http://mail.python.org/mailman/listinfo/pythonmac-sig
>
More information about the Pythonmac-SIG
mailing list