LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-15-2020, 07:24 PM   #16
Pithium
Member
 
Registered: Jul 2014
Location: Far side of the Oregon Trail
Distribution: Slackware64 15.0
Posts: 508

Rep: Reputation: 586Reputation: 586Reputation: 586Reputation: 586Reputation: 586Reputation: 586

Even if python2 is unmaintained and not seeing patches, it should be available just in case. There are a lot of random python scripts that people have written for various things and porting them to newer versions will be much harder if you can't verify functionality first under python2. Anyone who was writing scripts before version 3 probably has a personal archive of old scripts that would be worth running, even if just for the nostalgia.


It's really not just a matter of dependencies. A lot of companies rely on python for internal scripting purposes. If you take away python2 you take away the abilty to pull a script out of the archives from 10 years ago and run it. I'd rather spin up an isolated machine off the network to run an old script than not be able to run it at all. Even in a perfect world where everyone stopped writing in python2 and moved to python3 at the same time, on schedule, it would not change the fact that someone, somewhere, has to make python2 available for historical purposes. Some of these newer devs keep forgetting that Linux is popular on LTS systems that run for decades at a time.
 
1 members found this post helpful.
Old 03-15-2020, 08:31 PM   #17
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657
Quote:
Originally Posted by Pithium View Post
Even if python2 is unmaintained and not seeing patches, it should be available just in case.
If it is pulled out of Slackware, it is highly likely that someone will add it on SBo. That way if people need to use it, they can still install it, but it just won't be installed by default.

But Pat has not made a decision yet (at least not that he's announced publicly), so it's anybody's guess as to what would happen. But there's already been issues with upgrading software in -current because of python2. I guess the newest python-pygments removed python2 support, so any programs that depended on the python2 module in Slackware were broken. Pat reverted it to a previous version that still had python2 support for now, but he did ask for input on what people's thoughts were on keeping or removing python2.

Here's his note in the changelog:

Code:
l/python-pygments-2.5.2-x86_64-1.txz:  Upgraded.
  It seems like the pragmatic thing to do here is to revert this one to fix
  the python2 programs and modules that depend on it. We'll have to do a bit
  more research to determine what the best course of action is regarding
  python2 in general, though. Certainly we shouldn't be requiring python2
  for anything important moving forward, but even that will take some work.
  Plasma 5 as currently built has multiple dependencies on python2, for
  example.
 
Old 03-15-2020, 09:15 PM   #18
Pithium
Member
 
Registered: Jul 2014
Location: Far side of the Oregon Trail
Distribution: Slackware64 15.0
Posts: 508

Rep: Reputation: 586Reputation: 586Reputation: 586Reputation: 586Reputation: 586Reputation: 586
Assuming the the dependencies can resolved in the base install to not require python2, I wonder if python2 would belong in extra/ or pasture/. And honestly, IMO it's probably still early to make that call. Python is a full programming language, so it's not like we all need to stop dealing with it the moment some devs say they want to move on to 'the future'. If 15.0 had python2, but all the symlinks defaulted to 3.x I wouldn't be all that upset.

Why do we need to add new and remove old at the same time? Maybe the removable of python2 should wait for a later slackware version? In terms of an LTS cycle, it's more like a transitional period where both versions are available. As long as both versions can coexist then it seems like a logical next step.
 
2 members found this post helpful.
Old 03-15-2020, 11:10 PM   #19
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657Reputation: 6657
Is it worth keeping python2 if we need to limit versions of certain programs? This has already happened with python-pygments. If the next dev cycle takes another few or more years until we get a stable release, having programs held back could cause compatibility problems in the future. Just imagine if 14.2 had kept an older version of Xorg to ensure that the AMD proprietary Catalyst driver could be installed.

If all of Slackware can be recompiled to not require python2, then it should simply be removed from a stock install. Sure, I suppose it can go in extra/ or pasture/, but why not just let SBo pick it up? That way if there are patches or upgrades (whether official or 3rd-party), the SlackBuild maintainer could easily push those out.
 
Old 03-16-2020, 05:18 AM   #20
Regnad Kcin
Member
 
Registered: Jan 2014
Location: Beijing
Distribution: Slackware 64 -current .
Posts: 663

Rep: Reputation: 460Reputation: 460Reputation: 460Reputation: 460Reputation: 460
Python 2 is not dead.
It's merely resting.
Shagged out following a prolonged squawk.
...probably pining for the fjords.
 
1 members found this post helpful.
Old 03-16-2020, 01:13 PM   #21
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,275

Rep: Reputation: 5342Reputation: 5342Reputation: 5342Reputation: 5342Reputation: 5342Reputation: 5342Reputation: 5342Reputation: 5342Reputation: 5342Reputation: 5342Reputation: 5342
Quote:
Originally Posted by Pithium View Post
Even if python2 is unmaintained and not seeing patches, it should be available just in case. There are a lot of random python scripts that people have written for various things and porting them to newer versions will be much harder if you can't verify functionality first under python2. Anyone who was writing scripts before version 3 probably has a personal archive of old scripts that would be worth running, even if just for the nostalgia.
1. That's really no-one's problem or responsibility but your own

2. I'll bet that well over 90 percent of those scripts will work fine in Python 3 after you change the print statements

3. If you really need a Python 2 installation to support your proprietary, closed-source software (and that's really what we're talking about here), then you can build one. Or set up an older distro in a VM if you need Python 2 packages that aren't trivial to build (PyGTK, PyQT, Tensorflow, etc).

Last edited by dugan; 03-16-2020 at 02:01 PM.
 
2 members found this post helpful.
Old 03-16-2020, 03:02 PM   #22
phalange
Member
 
Registered: May 2018
Distribution: Slackware, FreeBSD, Debian
Posts: 355

Rep: Reputation: 184Reputation: 184
Quote:
Originally Posted by Pithium View Post
As long as both versions can coexist then it seems like a logical next step.
This was the "logical next step" in 2015 when it was made clear P2 was sunsetting and P3 would replace it. Now P2 is truly and absolutely dead. No security patches, no updates. It's puzzling that this narrative is emerging that there's some mad dash to kill P2 or obstinate devs who refuse to compromise by life-supporting P2 until forever.

The reality is that if something is still not python3-ready now, another grace period won't help.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] setup fails on most current Slackware-current March 26, 2012 AlleyTrotter Slackware 15 04-09-2012 06:05 AM
Observation of Feb -current vs March -current Hangaber Slackware 14 03-12-2010 08:26 AM
[SOLVED] GCC options: (-m64) vs (-march=native) vs (-march=core2) -- Which one(s) to use? GrapefruiTgirl Linux - Software 5 09-29-2009 07:53 AM
LXer: Python Python Python (aka Python 3) LXer Syndicated Linux News 0 08-05-2009 08:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration