Re: Question about python updates

Charlie Li <[email protected]>
Newsgroups gmane.os.freebsd.devel.ports
Organization FreeBSD Project
Message-ID <[email protected]>
On 09/02/2026 16:37, Guido Falsi wrote:
> Hi,
> 
> I'll take the risk of prodding the wasp nest related to python version 
> upgrade.
> 
> I'm forced to do this as the maintainer of deskutils/calibre.
> 
> Tat project has recently released a new major version with and hard 
> requirement of python 3.14 or newer [1]. It uses new constructs and 
> imports in multiple places, as much as needed to make the "hack it to 
> work with 3.11" strategy not viable (short of of creating a full fork of 
> the software).
> 
> So my question, which is not a demand, but just a request for 
> information I did not find elsewhere:
> 
> Is there any effort underway to update the python default to a newer 
> version?
> 
The other replies have covered the existing effort to get to 3.12 as 
default, which is a stopgap to 3.13. Generally python@'s procedure is to 
set the default to N-1, where N is the latest upstream CPython release 
branch.

Unlike previous default changes, 3.12 and later's changes have become 
far more intrusive, specifically deprecations and removals of certain 
components that nearly every package has (historically) relied on. The 
greater Python package ecosystem has also not been the most timely to 
act upon those changes let alone receive the information of them happening.

The main problem for us in ports is that setting a lower flavour bound 
that is higher than the default is broken. This is because the flavour 
corresponding to the default will not exist, which causes 
poudriere-bulk(8) to abort immediately. The workaround is to set the 
lower bound to the current default, but set BROKEN on every flavour 
except for 3.14 (and soon 3.14t).
> Also, apart from that, as I explain in [1], if I simply put 
> USES=python:3.14+ in the Makefile, the port fails to build due to many 
> of its requirements failing to provide a py-314 flavor. Is there any 
> work on this front?
> 
> I ask to know if there is some effort I can join and maybe help, 
> although I'm not a python expert.
> 
Which dependencies have an upper flavour bound to < 3.14?

-- 
Charlie Li
...nope, still don't have an exit line.
OpenPGP_signature.asc (application/pgp-signature, 236 B)
-----BEGIN PGP SIGNATURE-----

wnsEABYIACMWIQTHxcCLnAXo3rFg6k7P+1cn7slqBAUCaYqOZwUDAAAAAAAKCRDP+1cn7slqBMYF
AQCzZfxhevx5l6pddFV1idgFHoPZJp5dq8GLncA2WbnitQD+N7v1rB/jdItXuVIvcUmFoRWsZWmZ
34DT2Dhq5wHmEQk=
=3aBc
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.