Page 1 of 1

Python upgrade

Posted: Tue Jun 18, 2024 2:21 pm
by wundermute
Hello,

Following the news '2024-05-09 Python 3.12 to become the default on 2024-06-01' I upgraded to 3_12.
I since experience a fair amount of ebuilds still remaining in 3_11. It's funny to find some dev-python ones. Is there somewhere a list of those 3_11 ebuilds ?

I think the easiest way while waiting for some upgraded ebuilds is to copy them in my localrepo and build a new manifest with modified ebuilds.

For more than a decade now, I feel good with perl-cleaner and often pest about python upgrades. Is there a magic wand I'm unaware of ?

regards

Posted: Tue Jun 18, 2024 3:49 pm
by pjp

Posted: Tue Jun 18, 2024 7:54 pm
by eschwartz
https://qa-reports.gentoo.org/

Under "Python reports", there is the list of all packages that support 3.11 but not 3.12: https://qa-reports.gentoo.org/output/gp ... to-312.txt

Also the list of all packages that support 3.12 in an ~arch ebuild, but only support 3.11 in *stable* packages, and thus need a stablereq to be carried out: https://qa-reports.gentoo.org/output/gp ... blereq.txt

The tracker issue isn't automatically generated from the authoritative state of the repository itself, but should in principle be mostly the same as the QA reports.

Posted: Wed Jun 19, 2024 12:37 pm
by wundermute
Thank you for all those details.

Posted: Mon Jun 24, 2024 1:55 pm
by artbody
python is a mess since YEARS 8O
every update the same ... :oops:

imagine that all other Prog-languages need the same attention ...

but as said on my first look at the first python scripts over 20 years ago, someone who doesn't give a fixed end to a line , like in C the ; sign , is miles away from what ever.

in my opinion
Wait until you have no other possibility

Posted: Mon Jun 24, 2024 2:06 pm
by Spanik
artbody wrote:python is a mess since YEARS 8O
every update the same ... :oops:

imagine that all other Prog-languages need the same attention ...

but as said on my first look at the first python scripts over 20 years ago, someone who doesn't give a fixed end to a line , like in C the ; sign , is miles away from what ever.

in my opinion
Wait until you have no other possibility
+1 (and more) Every time there is a Python (or Perl) update I fear the worst. Rarely this goes fine and almost every time I find myself coming here to get everything working again.

Posted: Mon Jun 24, 2024 2:30 pm
by eschwartz
artbody wrote:python is a mess since YEARS 8O
every update the same ... :oops:

imagine that all other Prog-languages need the same attention ...
But other programming languages DO need the same attention and are handled the same way in Gentoo.

It's just that python is actually a popular programming language. No one uses lua or ruby, for example.

Rust (and go) is far worse than python, but simply bundles all its dependencies into each ebuild.

C/C++ handle this via slots, and people complain about slot conflicts on Gentoo more often than they complain about python issues.

Posted: Tue Jun 25, 2024 2:03 pm
by Ralphred
Spanik wrote:
artbody wrote:python is a mess since YEARS 8O
every update the same ... :oops:

imagine that all other Prog-languages need the same attention ...

but as said on my first look at the first python scripts over 20 years ago, someone who doesn't give a fixed end to a line , like in C the ; sign , is miles away from what ever.

in my opinion
Wait until you have no other possibility
+1 (and more) Every time there is a Python (or Perl) update I fear the worst. Rarely this goes fine and almost every time I find myself coming here to get everything working again.
The smoothest transition is still to enable the current default and the next version as soon as an upgrade is hinted at, then at a time of your choosing (possibly after some /var/db/pkg/*/*/*.ebuild grepping) turn of the now old version. I neglected to "turn off" one of the old versions on one of my machines from the 3.8->3.9 upgrade, on doing so before attempting the 3.12 upgrade it only affected about 3 packages, so it can be painless, even if less than optimal, to have multiple versions installed.

I think it boils down to how much are you willing to fondle the upgrade vs how much python cruft laying on your drive you find acceptable.

Python...

Posted: Thu Jun 27, 2024 2:04 am
by Mkomlofske89
Snakes be messing up everything! Watch out for that king cobra though.