Re: Python and python3

2024-05-01 Thread ideal . cat9953
On Wed, May 1, 2024, at 5:04 PM, Rainer Müller wrote:
> On 01/05/2024 23.17, ideal.cat9...@fastmail.com wrote:
>> I’m relatively new to MacPorts, and I notice that the pythonX packages
>> create a python but not python3 link. Is there a reason for that? Both
>> the system python and other package managers use python3, and that’s a
>> hard habit to switch after so many years, and I don’t want to
>> accidentally use the wrong (in this case, system) python.
>
> You can control both the python and python3 symlinks in the prefix with
> the 'port select' action, for example:
>
>   sudo port select --set python python312
>   sudo port select --set python3 python312

Ahhh, the only usage I saw was just python, I didn’t realize you could do both. 
Very good, thank you!


Re: Python and python3

2024-05-01 Thread Rainer Müller
On 01/05/2024 23.17, ideal.cat9...@fastmail.com wrote:
> I’m relatively new to MacPorts, and I notice that the pythonX packages
> create a python but not python3 link. Is there a reason for that? Both
> the system python and other package managers use python3, and that’s a
> hard habit to switch after so many years, and I don’t want to
> accidentally use the wrong (in this case, system) python.

You can control both the python and python3 symlinks in the prefix with
the 'port select' action, for example:

  sudo port select --set python python312
  sudo port select --set python3 python312

Rainer


Python and python3

2024-05-01 Thread ideal . cat9953
I’m relatively new to MacPorts, and I notice that the pythonX packages create a 
python but not python3 link. Is there a reason for that? Both the system python 
and other package managers use python3, and that’s a hard habit to switch after 
so many years, and I don’t want to accidentally use the wrong (in this case, 
system) python.