Python 2 exorcism

Discussion in general that pertains to Sabayon Linux - Must Pertain to Sabayon Linux

Moderator: Moderators

msdobrescu
Old Dear Hen
Posts: 876
Joined: Sun Aug 21, 2011 8:48

Python 2 exorcism

Post by msdobrescu » Tue Jun 30, 2020 6:04

Hi, I see you work hard on this Python EOL.
Today, among other things, Spyder is gone.
Isn't any Python 3.x Spyder?
I can install it myself, but really, looks like you want to kill this wonderful distro by removing things that people are dependent of.
Or am I the only one using Spyder, DisplayCAL, MyPaint and others removed lately?

User avatar
sabayonino
Sagely Hen
Posts: 3539
Joined: Sun Sep 21, 2008 1:12
Location: Italy
Contact:

Re: Python 2 exorcism

Post by sabayonino » Tue Jun 30, 2020 11:18

As Joost said in other posts , Gentoo/Sabayon are going to drop 2.7 Python 'cause EOL.

If many applications have no porting to Pyhon3 , this is an upstream issue not related Gentoo/Sabayon

msdobrescu
Old Dear Hen
Posts: 876
Joined: Sun Aug 21, 2011 8:48

Re: Python 2 exorcism

Post by msdobrescu » Tue Jun 30, 2020 13:21

Indeed, but Spyder must have, right?
Look here: https://packages.gentoo.org/packages/dev-python/spyder
It says it's dependent on python 3.7.
Why not replacing that old build (removed) with the new package at the same time?
Of course, I might be wrong, I haven't check, there might be something else preventing it, but I don't know what...
I know it's a hard time for the team, as they port a lot now, but still...

joost
Sagely Hen
Posts: 2805
Joined: Fri Nov 17, 2006 12:11
Location: The Netherlands
Contact:

Re: Python 2 exorcism

Post by joost » Tue Jun 30, 2020 16:43

Why not replacing that old build (removed) with the new package at the same time?
Because our tree is on Python 3.6
My blog | Mastodon | Please support Sabayon: Become a Patron

msdobrescu
Old Dear Hen
Posts: 876
Joined: Sun Aug 21, 2011 8:48

Re: Python 2 exorcism

Post by msdobrescu » Tue Jun 30, 2020 17:43

Oh God! :)

joost
Sagely Hen
Posts: 2805
Joined: Fri Nov 17, 2006 12:11
Location: The Netherlands
Contact:

Re: Python 2 exorcism

Post by joost » Tue Jun 30, 2020 17:47

It is a bit of a shitty situation right now. We are working Python 2.7 out of the tree, we are still on Python 3.6 and upstream Gentoo is already starting to drop support on Python 3.6 it seems.

I had to fork some ebuilds to be able to get latest KDE Plasma

https://github.com/Sabayon/for-gentoo/t ... frameworks
https://github.com/Sabayon/for-gentoo/t ... r/kde-apps
https://github.com/Sabayon/for-gentoo/t ... breeze-gtk

meh!
My blog | Mastodon | Please support Sabayon: Become a Patron

msdobrescu
Old Dear Hen
Posts: 876
Joined: Sun Aug 21, 2011 8:48

Re: Python 2 exorcism

Post by msdobrescu » Tue Jun 30, 2020 18:09

I see. Timing... Really, this new KDE Plasma is a bit crashy already and I've got a strange Total CPU USe applet showing 23,6 s-1 right now... that I don't understand, but I am looking into KDE Plasma itself to understand what is that. I miss so much the 5.18 version of these, the new ones are useless to me... Worst is I get Plasma restarts from time to time now.

User avatar
sabayonino
Sagely Hen
Posts: 3539
Joined: Sun Sep 21, 2008 1:12
Location: Italy
Contact:

Re: Python 2 exorcism

Post by sabayonino » Tue Jun 30, 2020 18:20

joost wrote:
Tue Jun 30, 2020 17:47
and upstream Gentoo is already starting to drop support on Python 3.6 it seems.

for Gentoo users
2020-04-22-python3-7
Title Python 3.7 to become the default target
Author Michał Górny <[email protected]>
Posted 2020-04-22
Revision 1

On 2020-05-06 (or later), Python 3.7 will replace Python 3.6 as one
of the default Python targets for Gentoo systems. The new default
values will be:

PYTHON_TARGETS="python2_7 python3_7"
PYTHON_SINGLE_TARGET="python3_7"

If you have not overriden these variables on your system, then your
package manager will switch to the new targets immediately. In order
to avoid dependency conflicts, please clean stray packages up
and rebuild/upgrade all packages with USE flag changes after the change,
e.g.:

emerge --depclean
emerge -1vUD @world
emerge --depclean

Please note that during the system upgrade some of the package
dependencies may temporarily become missing. While this should not
affect programs that are already fully loaded, it may cause ImportErrors
when starting Python scripts or loading additional modules (only scripts
running Python 3.6 are affected).

In order to improve stability of the upgrade, you may choose to
temporarily enable both targets, i.e. set in /etc/portage/package.use
or its equivalent:

*/* PYTHON_TARGETS: python3_6 python3_7
*/* PYTHON_SINGLE_TARGET: -* python3_6

This will cause the dependencies to include both Python 3.6 and 3.7
support whenever possible, throughout the next system upgrade. Once all
packages are updated, you can restart your scripts, remove the setting
and start another upgrade in order to cleanly remove Python 3.6.

There are still some Gentoo packages that do not support Python 3.7.
We will be pushing updates to these packages as time permits. However,
some of them will probably be removed instead.

If you would like to postpone the switch to Python 3.7, you can copy
the current value of PYTHON_TARGETS and/or PYTHON_SINGLE_TARGET
to /etc/portage/package.use or its equivalent:

*/* PYTHON_TARGETS: -python3_7 python3_6
*/* PYTHON_SINGLE_TARGET: -* python3_6

If you would like to migrate your systems earlier, you can do
the opposite. Note that if you are running ~arch, you may want to go
straight for Python 3.8 at this point.

Please note that this switch is long overdue. Python 3.6 is no longer
receiving bug fixes. Its planned end-of-life is 2021-12-23 but we will
probably remove it earlier than that. [1]

All above snippets assume using package.use to control USE flags.
If you still have make.conf entries for these targets, you need
to remove them. While using make.conf is possible, it is strongly
discouraged as it does not respect package defaults. The latter
can help you keep some of Python 3.6 packages without the need to
explicitly toggle flags per-package.

[1] https://devguide.python.org/#status-of-python-branches
:arrow:

msdobrescu
Old Dear Hen
Posts: 876
Joined: Sun Aug 21, 2011 8:48

Re: Python 2 exorcism

Post by msdobrescu » Wed Jul 01, 2020 6:44

What about that manual review for Shadow? It claims it is no longer maintained.

msdobrescu
Old Dear Hen
Posts: 876
Joined: Sun Aug 21, 2011 8:48

Re: Python 2 exorcism

Post by msdobrescu » Wed Jul 01, 2020 19:03

The latest KDE acts weird lately. The Individual Core Usage widget starts by displaying percents, then changes to KiB/s.
Clementine has an XML tooltip.
The digital clock widget starts missing a number, now it's 7, si it displays nothing when 7 is involved...
Plasma is restarting sometimes, when I try to access some widgets settings...

Post Reply