Tidying up Python
Bjarne D Mathiesen
macintosh at mathiesen.info
Fri Jul 11 10:02:25 UTC 2025
Den 11.07.2025 kl. 11.48 skrev Ryan Carsten Schmidt:
> On Jul 11, 2025, at 03:52, Bjarne D Mathiesen wrote:
>>
>> What often happens is, that you have a port, that needs python, like eg
>> this:
>> #=> port info certbot
>> certbot @4.1.1 (security)
>> Variants: docs, python310, python311, python312, [+]python313, python39
>>
>> As you can see, the default is currently python313, !but! if you
>> installed certbot, when python312 was the default, it doesn't
>> automagically get updated to python313 .
>>
>> Thus, when a new major version of python gets released, you'll have to
>> manually check which ports are dependent on the old major version, and
>> see, if they have been updated to the latest major version.
>
> That information is outdated. Ever since MacPorts version 2.7.0 (2021),
> MacPorts *does* automagically switch you to the new default variants.
> See https://trac.macports.org/ticket/46956 <https://trac.macports.org/
> ticket/46956>
>
Hmmmm ... what might have happened is, that the default was
[+]python311, !but! python312 was available as a variant, so I installed
it with +python312 explicitly. I do remember having to explicitly
--enfoce-upgrade both certbot and youtube-dl
--
Bjarne D Mathiesen
Slagelse ; Danmark ; Europa
-----------------------------------------------------------------------
denne besked er skrevet i et totalt M$-frit miljø
MacPro 2010 5.1 ; OpenCore + macOS 14.7.6 Sonoma
2 x 3,46 GHz 6-Core Intel Xeon ; 192 GB 1333 MHz DDR3 ECC RDIMM
ATI Radeon RX 590 8 GB
More information about the macports-users
mailing list