LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   What version of Python 3.x should ship with Slackware 15.0? (https://www.linuxquestions.org/questions/slackware-14/what-version-of-python-3-x-should-ship-with-slackware-15-0-a-4175702008/)

bassmadrigal 11-03-2021 09:55 AM

Quote:

Originally Posted by brobr (Post 6298030)
Hmmm, so it would make it impossible to remain with python3.10 unless those 100 or more upgrades coming our way need to be ignored? Maybe good to know which ones these are. If KDE-based than it would be managable at my end (no KDE on this box) and no need to switch back. If not KDE, then the slog of rebuilding my numerous python-packages has to be taken up....

You can have a look at the ChangeLog when 3.10 was pushed. Ignore the "Upgraded." within the kde/ section, as he also upgraded KDE at the same time. Pay attention to the "Rebuilt." and that will give you a good idea of what packages need to be recompiled. It's basically anything with a python module, since those are all version dependent.

Below is the list of "Rebuilt." packages on that day. This list might not be all the packages as some were upgraded and some of these might've been rebuilt for something unrelated to the python bump, but as I said, it will give you a good idea of what packages might be in that list of 100ish packages (there's 112 here).

Code:

a/aaa_libraries-15.0-x86_64-10.txz:  Rebuilt.                                                                                                                                                                                                                                 
a/libblockdev-2.26-x86_64-2.txz:  Rebuilt.                                                                                                                                                                                                                                   
a/libbytesize-2.6-x86_64-2.txz:  Rebuilt.                                                                                                                                                                                                                                     
a/libpwquality-1.4.4-x86_64-5.txz:  Rebuilt.                                                                                                                                                                                                                                 
a/util-linux-2.37.2-x86_64-5.txz:  Rebuilt.                                                                                                                                                                                                                                   
a/volume_key-0.3.12-x86_64-4.txz:  Rebuilt.                                                                                                                                                                                                                                   
ap/hplip-3.20.5-x86_64-4.txz:  Rebuilt.                                                                                                                                                                                                                                       
ap/linuxdoc-tools-0.9.82-x86_64-2.txz:  Rebuilt.                                                                                                                                                                                                                             
ap/rpm-4.16.1.3-x86_64-2.txz:  Rebuilt.                                                                                                                                                                                                                                       
ap/undervolt-20201024_13fa33d-x86_64-4.txz:  Rebuilt.                                                                                                                                                                                                                         
d/Cython-0.29.24-x86_64-2.txz:  Rebuilt.                                                                                                                                                                                                                                     
d/distcc-3.4-x86_64-2.txz:  Rebuilt.                                                                                                                                                                                                                                         
d/gdb-11.1-x86_64-3.txz:  Rebuilt.                                                                                                                                                                                                                                           
d/gyp-20200512_caa60026-x86_64-5.txz:  Rebuilt.                                                                                                                                                                                                                               
d/llvm-12.0.1-x86_64-2.txz:  Rebuilt.                                                                                                                                                                                                                                         
d/mercurial-5.9.2-x86_64-2.txz:  Rebuilt.                                                                                                                                                                                                                                     
d/meson-0.59.2-x86_64-2.txz:  Rebuilt.                                                                                                                                                                                                                                       
d/python-pip-21.2.4-x86_64-2.txz:  Rebuilt.                                                                                                                                                                                                                                   
d/python-setuptools-58.2.0-x86_64-2.txz:  Rebuilt.                                                                                                                                                                                                                           
d/scons-4.0.1-x86_64-5.txz:  Rebuilt.                                                                                                                                                                                                                                         
kde/extra-cmake-modules-5.86.0-x86_64-3.txz:  Rebuilt.                                                                                                                                                                                                                       
kde/kapidox-5.86.0-x86_64-3.txz:  Rebuilt.                                                                                                                                                                                                                                   
kde/kauth-5.86.0-x86_64-3.txz:  Rebuilt.                                                                                                                                                                                                                                     
kde/kcodecs-5.86.0-x86_64-3.txz:  Rebuilt.                                                                                                                                                                                                                                   
kde/kcompletion-5.86.0-x86_64-3.txz:  Rebuilt.                                                                                                                                                                                                                               
kde/kconfig-5.86.0-x86_64-3.txz:  Rebuilt.                                                                                                                                                                                                                                   
kde/kconfigwidgets-5.86.0-x86_64-3.txz:  Rebuilt.                                                                                                                                                                                                                             
kde/kcoreaddons-5.86.0-x86_64-3.txz:  Rebuilt.                                                                                                                                                                                                                               
kde/kdbusaddons-5.86.0-x86_64-3.txz:  Rebuilt.                                                                                                                                                                                                                               
kde/kguiaddons-5.86.0-x86_64-3.txz:  Rebuilt.                                                                                                                                                                                                                                 
kde/ki18n-5.86.0-x86_64-3.txz:  Rebuilt.                                                                                                                                                                                                                                     
kde/kitemmodels-5.86.0-x86_64-3.txz:  Rebuilt.                                                                                                                                                                                                                               
kde/kitemviews-5.86.0-x86_64-3.txz:  Rebuilt.                                                                                                                                                                                                                                 
kde/kjobwidgets-5.86.0-x86_64-3.txz:  Rebuilt.                                                                                                                                                                                                                               
kde/kmymoney-5.1.2-x86_64-3.txz:  Rebuilt.                                                                                                                                                                                                                                   
kde/krita-4.4.8-x86_64-5.txz:  Rebuilt.                                                                                                                                                                                                                                       
kde/kwidgetsaddons-5.86.0-x86_64-3.txz:  Rebuilt.                                                                                                                                                                                                                             
l/M2Crypto-0.38.0-x86_64-2.txz:  Rebuilt.                                                                                                                                                                                                                                     
l/Mako-1.1.4-x86_64-4.txz:  Rebuilt.                                                                                                                                                                                                                                         
l/PyQt5-5.15.2-x86_64-4.txz:  Rebuilt.                                                                                                                                                                                                                                       
l/QScintilla-2.11.6-x86_64-4.txz:  Rebuilt.                                                                                                                                                                                                                                   
l/brotli-1.0.9-x86_64-6.txz:  Rebuilt.                                                                                                                                                                                                                                       
l/dbus-python-1.2.18-x86_64-2.txz:  Rebuilt.                                                                                                                                                                                                                                 
l/gexiv2-0.14.0-x86_64-2.txz:  Rebuilt.                                                                                                                                                                                                                                       
l/glade-3.38.2-x86_64-4.txz:  Rebuilt.
l/gobject-introspection-1.70.0-x86_64-2.txz:  Rebuilt.
l/lensfun-0.3.95-x86_64-4.txz:  Rebuilt.
l/libcaca-0.99.beta19-x86_64-10.txz:  Rebuilt.
l/libcap-ng-0.8.2-x86_64-4.txz:  Rebuilt.
l/libimobiledevice-20200615_4791a82-x86_64-5.txz:  Rebuilt.
l/libproxy-0.4.17-x86_64-4.txz:  Rebuilt.
l/libwebp-1.2.1-x86_64-2.txz:  Rebuilt.
l/libxml2-2.9.12-x86_64-2.txz:  Rebuilt.
l/newt-0.52.21-x86_64-6.txz:  Rebuilt.
l/openexr-2.5.7-x86_64-3.txz:  Rebuilt.
l/pycairo-1.20.1-x86_64-2.txz:  Rebuilt.
l/pycups-2.0.1-x86_64-5.txz:  Rebuilt.
l/pycurl-7.44.1-x86_64-2.txz:  Rebuilt.
l/pygobject3-3.42.0-x86_64-2.txz:  Rebuilt.
l/pyparsing-2.4.7-x86_64-5.txz:  Rebuilt.
l/python-appdirs-1.4.4-x86_64-5.txz:  Rebuilt.
l/python-certifi-2021.5.30-x86_64-2.txz:  Rebuilt.
l/python-cffi-1.14.6-x86_64-2.txz:  Rebuilt.
l/python-chardet-4.0.0-x86_64-4.txz:  Rebuilt.
l/python-charset-normalizer-2.0.6-x86_64-2.txz:  Rebuilt.
l/python-distro-1.5.0-x86_64-5.txz:  Rebuilt.
l/python-dnspython-2.1.0-x86_64-2.txz:  Rebuilt.
l/python-docutils-0.17.1-x86_64-2.txz:  Rebuilt.
l/python-future-0.18.2-x86_64-6.txz:  Rebuilt.
l/python-idna-3.2-x86_64-2.txz:  Rebuilt.
l/python-markdown-3.3.4-x86_64-2.txz:  Rebuilt.
l/python-notify2-0.3.1-x86_64-9.txz:  Rebuilt.
l/python-packaging-21.0-x86_64-2.txz:  Rebuilt.
l/python-pillow-8.3.2-x86_64-2.txz:  Rebuilt.
l/python-ply-3.11-x86_64-7.txz:  Rebuilt.
l/python-pycparser-2.20-x86_64-2.txz:  Rebuilt.
l/python-pygments-2.10.0-x86_64-2.txz:  Rebuilt.
l/python-pysol_cards-0.10.2-x86_64-2.txz:  Rebuilt.
l/python-random2-1.0.1-x86_64-4.txz:  Rebuilt.
l/python-requests-2.26.0-x86_64-2.txz:  Rebuilt.
l/python-sane-2.9.1-x86_64-4.txz:  Rebuilt.
l/python-six-1.16.0-x86_64-2.txz:  Rebuilt.
l/python-urllib3-1.26.7-x86_64-2.txz:  Rebuilt.
l/sip-4.19.25-x86_64-2.txz:  Rebuilt.
l/speech-dispatcher-0.10.2-x86_64-4.txz:  Rebuilt.
l/system-config-printer-1.5.15-x86_64-4.txz:  Rebuilt.
l/talloc-2.3.3-x86_64-2.txz:  Rebuilt.
l/tdb-1.4.5-x86_64-2.txz:  Rebuilt.
l/tevent-0.11.0-x86_64-2.txz:  Rebuilt.
n/bind-9.16.21-x86_64-5.txz:  Rebuilt.
n/epic5-2.1.6-x86_64-2.txz:  Rebuilt.
n/fetchmail-6.4.22-x86_64-2.txz:  Rebuilt.
n/getmail-6.18.4-x86_64-2.txz:  Rebuilt.
n/gpgme-1.16.0-x86_64-2.txz:  Rebuilt.
n/net-snmp-5.9.1-x86_64-2.txz:  Rebuilt.
n/nftables-1.0.0-x86_64-3.txz:  Rebuilt.
n/nss-pam-ldapd-0.9.11-x86_64-4.txz:  Rebuilt.
n/obexftp-0.24.2-x86_64-9.txz:  Rebuilt.
n/pssh-2.3.4-x86_64-5.txz:  Rebuilt.
n/samba-4.15.0-x86_64-2.txz:  Rebuilt.
x/ibus-1.5.25-x86_64-2.txz:  Rebuilt.
x/ibus-anthy-1.5.13-x86_64-2.txz:  Rebuilt.
x/ibus-hangul-1.5.4-x86_64-4.txz:  Rebuilt.
x/ibus-libpinyin-1.12.1-x86_64-2.txz:  Rebuilt.
x/ibus-table-1.14.1-x86_64-2.txz:  Rebuilt.
x/pyxdg-0.27-x86_64-5.txz:  Rebuilt.
x/xcb-proto-1.14.1-x86_64-5.txz:  Rebuilt.
xap/blueman-2.2.2-x86_64-2.txz:  Rebuilt.
xap/hexchat-2.16.0-x86_64-2.txz:  Rebuilt.
extra/brltty/brltty-6.4-x86_64-2.txz:  Rebuilt.
isolinux/initrd.img:  Rebuilt.
usb-and-pxe-installers/usbboot.img:  Rebuilt.


volkerdi 11-03-2021 12:45 PM

1 Attachment(s)
Quote:

Originally Posted by bassmadrigal (Post 6298050)
You can have a look at the ChangeLog when 3.10 was pushed. Ignore the "Upgraded." within the kde/ section, as he also upgraded KDE at the same time. Pay attention to the "Rebuilt." and that will give you a good idea of what packages need to be recompiled. It's basically anything with a python module, since those are all version dependent.

Here's the buildlist I used along with make_world.sh (like this in the slackware64-current/source directory):
Code:

BUILDLIST=/tmp/python3-buildlist.txt ./make_world.sh

wael_h 11-03-2021 01:25 PM

reinstall python3.9 use venv
 
This is ridiculous, the world is moving to 3.10, there is no stopping that. You are correcting a mistake with another mistake.
You can just reinstall version 3.9 and use python virtual environment for those that do not build with 3.10

Wael Hammoudeh

marav 11-03-2021 01:33 PM

Quote:

Originally Posted by wael_h (Post 6298108)
This is ridiculous, the world is moving to 3.10, there is no stopping that. You are correcting a mistake with another mistake.
You can just reinstall version 3.9 and use python virtual environment for those that do not build with 3.10

Wael Hammoudeh

Nobody, except Fedora, has moved to python 3.10 ...

adcdam 11-03-2021 02:25 PM

well in Gentoo python 3.9 is still the default.
https://www.gentoo.org/support/news-...python3-9.html

TheRealGrogan 11-03-2021 03:28 PM

Not even wild and crazy Arch Linux has it, not even in Testing (which means no immediate plans to upgrade it, if it's not there by this time).

Slackware is trying to stabilize for a release, python 3.10 was inappropriate at this stage of the game. There should be nothing that breaks things getting added to the distro at this time.

virtual environments? I would rather have appropriate system python versions installed so I don't have to resort to such tomfoolery. So I can just install things to site or dist. Right now that's python 2.7 and 3.9.

wael_h 11-03-2021 04:29 PM

I totally agree that adding 3.10 was premature. Had I been asked BEFORE the addition, my answer would have been not now.
Now it was already added, I voted to keep it, I still do hold this opinion. When I say the whole world is moving to 3.10, I am not concerned with other distribution here, all python code is going to be ported to 3.10 and soon.

I've written a quick howto I added python 3.9 to current. It sure can be done in more elegant way -- find that here.
Python virtual environment is nothing new, I recall a howto by AlienBob from years ago for it, somebody can look that up; if you need to!
My opinion does not matter and I am not going to argue with anybody, the decision has been made. What is the point? I still can say it is the wrong decision.

I would like to see Slackware 15.0 released ASAP. I think PVE is a faster way toward that goal. This is another set back!

Wael Hammoudeh

adcdam 11-03-2021 04:41 PM

I really would like python to be slotted like in Gentoo, you can have python 3.8, 3.9 3.10 and 3.11 alfa in the same system if you like and choose what python interpreter to use.
Instead of usr/lib64/libpython3.10.so and usr/lib64/libpython3.so like in Slackware, they have in Gentoo
usr/lib64/libpython3.10.so
usr/lib64/libpython3.10.so.1.0
usr/lib64/libpython3.9.so
usr/lib64/libpython3.9.so.1.0


I know in a source distro having python is slotted way is more useful than in a binary distro like Slackware but still would be a nice feature to have for someone who like to test stuff or build its own packages.

RadicalDreamer 11-03-2021 04:47 PM

Quote:

Originally Posted by wael_h (Post 6298149)
all python code is going to be ported to 3.10 and soon.

How will this effect programs built with 3.9? Is there anything that builds with 3.10 but not 3.9?

wael_h 11-03-2021 05:07 PM

Hello all;

The decision to go back to 3.9 has already been made. It was not mine, and I am not trying to change it - I know that I can not. I am just voicing my opinion which I think I just did, maybe I should have spoken sooner!? But again I am not looking for an argument about my opinion, some people will agree with me and some will not. Unfortunately all this does not matter.

I am late to work, got to go, you will not hear from me for a while. Mr. volkerdi please release Slackware 15.0 ASAP.

Have a great day;
Wael Hammoudeh

chrisretusn 11-04-2021 12:59 AM

Quote:

Originally Posted by brobr (Post 6298030)
Hmmm, so it would make it impossible to remain with python3.10 unless those 100 or more upgrades coming our way need to be ignored? Maybe good to know which ones these are. If KDE-based than it would be managable at my end (no KDE on this box) and no need to switch back. If not KDE, then the slog of rebuilding my numerous python-packages has to be taken up....

Well now that those updates have arrived. I have decided it just not worth the effort to separately try to maintain separate Slackware packages for Python 3.10; just to many of them. So... hi ho, hi, ho, it's back to Python 3.9 for me.

perrin4869 11-04-2021 02:03 AM

Oh man after all the work upgrading all my packages to 3.10, this downgrade really sucks haha
I hope it goes back to 3.10 really soon, don't feel like rebuilding all my packages again...

marrowsuck 11-04-2021 04:39 AM

I'm just catching up. I would have almost missed the downgrade to python3.9. A heads-up at the beginning of the changelog would be more sensible.

marav 11-04-2021 05:50 AM

Quote:

Originally Posted by marrowsuck (Post 6298264)
I'm just catching up. I would have almost missed the downgrade to python3.9. A heads-up at the beginning of the changelog would be more sensible.

And curiously, you post exactly in the thread where PV made the announcement

Quote:

Originally Posted by volkerdi (Post 6297787)
Good afternoon Slackware users! After careful consideration, and in spite of the results of the poll, I've decided that it's in the best interests of a stable 15.0 release to switch things back to Python 3.9 and take on Python 3.10 again some time in the next development cycle when the Python ecosystem has stabilized around it.
...


chrisretusn 11-04-2021 07:30 AM

Quote:

Originally Posted by marrowsuck (Post 6298264)
I'm just catching up. I would have almost missed the downgrade to python3.9. A heads-up at the beginning of the changelog would be more sensible.

Well it was identified
Code:

d/python3-3.9.7-x86_64-2.txz: Rebuilt.
      Back to Python 3.9, which seems to be the best version to use at this time.

That said, I agree.

I've been following this thread, was well aware of this and waiting for it to appear in ChangeLog.txt There probably should have been a note at the top of ChangeLog.txt. The quote @marav posted would have been sufficient. One can maybe assume outside of the obvious "py", "python" packages everything "Rebuilt" was against python 3.9; however there are a few "Upgraded" in there too that need python. Any way my preferred mirror hasn't picked up the changes yet, so I wait until after the next cron job tomorrow. To start dealing with this and the real gotcha in that ChangeLog.txt

Code:

k/kernel-source-5.15.0-noarch-1.txz: Upgraded.
      We'll be using 5.15.x in the 15.0 release, and it's working well here, so
      let's just start it right out in the main tree rather than in /testing.
      The primary differences with the previous (5.14.15) kernel:
      The default preemption mode is changed to "voluntary".
      Added CONFIG_CEC_GPIO=m (thanks to LuckyCyborg).

My video driver is NVIDIA 390.144, patched for 5.14.x, guess I find out tomorrow if it builds with 5.15.x. ;)


All times are GMT -5. The time now is 07:00 AM.