LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


View Poll Results: Which python3 should ship in Slackware 15.0?
Python 3.9 33 33.33%
Python 3.10 66 66.67%
Voters: 99. You may not vote on this poll

Reply
  Search this Thread
Old 10-18-2021, 11:02 AM   #61
OldHolborn
Member
 
Registered: Jul 2012
Posts: 229

Rep: Reputation: 190Reputation: 190

Please excuse a possibly daft question but...

As a Slackbuild would possibly/probably be a less than cutting edge package while pip would be the newest shiny, why would anyone want the combination of the latest Python and Slackbuilds?

Wouldn't they be two different camps?

3.10 and pip
3.9 and Slackbuilds

?
 
Old 10-18-2021, 11:34 AM   #62
Battered Fish
LQ Newbie
 
Registered: Oct 2020
Location: Toronto, Ontario, Canada
Distribution: Slackware-current
Posts: 13

Rep: Reputation: Disabled
Quote:
Originally Posted by cycojesus View Post
Time to plug my generic pip SlackBuild :P : https://github.com/gwenhael-le-moine...hon.SlackBuild

call it like
Code:
PRGNAM=smartypants /home/installs/SlackBuilds/generic-python.SlackBuild

Thanks, you just proved my point. :-)
 
Old 10-18-2021, 02:08 PM   #63
brobr
Member
 
Registered: Oct 2003
Location: uk
Distribution: Slackware
Posts: 973

Rep: Reputation: 238Reputation: 238Reputation: 238
Quote:
Originally Posted by OldHolborn View Post
Please excuse a possibly daft question but...

As a Slackbuild would possibly/probably be a less than cutting edge package while pip would be the newest shiny, why would anyone want the combination of the latest Python and Slackbuilds?

Wouldn't they be two different camps?

3.10 and pip
3.9 and Slackbuilds

?
No different camps needed. It is quite easy to have 3.10 and Slackbuilds. The major issue is that by pip-installing one hands over control to the installer of what's going onto the box; it drags in dependencies (therefore the above advised add-on to use: `--no-deps`), overwriting current ones in favor of the required (acc. to the program) version. Many people (incl me) like to make SlackBuilds for modules (incl. for these dependencies).

Once made, upgrading the python module is a piece of cake; after downloading the source file from pypi.org, only change the version nr in the SlackBuild (plus md5sum when needing an info file for sbopkg; in this respect it is helpful to use a readable web address for the source instead of a direct copied link (as suggested here)).

By creating a SlackBuild, one creates a package of a python module that can then be installed on a large number of other boxes with the same setup. (Pip only deals with the box the install goes on).

One does not need to try a pip-install to find dependencies, most of them are described in 'requires.txt' found in the 'egg.info' or the 'setup.cfg' in the shipped source (tar.gz) file of the module on pypi.org.

Many python SlackBuilds on Sbo are quickly updated when needed. This all depends on the maintainers. It would be helpful if the build-scripts get standard separated in python2 and python3 only scripts. That would make it more easy to keep track of dependencies (via the info files) and enables moving on.

Because of python3.10 developers that still want their program working will sort out bugs caused by the change. (Coding-wise, the move from python2 to python3 was more painful than that from 3.9 to 3.10. And we/most of us survived that one ;-)

Last edited by brobr; 10-18-2021 at 02:15 PM.
 
5 members found this post helpful.
Old 10-18-2021, 03:55 PM   #64
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
I am another that does not use CPAN or PIP - or anything that has potential to drag in anything from ... where ever, but prefer to build modules with Slackbuilds as well. I'll work with the version Pat decides to ship.
 
1 members found this post helpful.
Old 10-18-2021, 04:48 PM   #65
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,403
Blog Entries: 3

Rep: Reputation: 513Reputation: 513Reputation: 513Reputation: 513Reputation: 513Reputation: 513
Quote:
Originally Posted by Battered Fish View Post
Large packages like spyder, a Python IDE, have many python package dependencies. So your choice is:

$ pip install spyder

or

$ [manage and create 130 python slackbuild install packages and install them (and maintain them every time there an update)]
Or virtualenv ? I use that for fairly less than a hundred modules...
 
Old 10-18-2021, 05:23 PM   #66
slac-in-the-box
Member
 
Registered: Mar 2010
Location: oregon
Distribution: slackware64-15.0 / slarm64-current
Posts: 779
Blog Entries: 1

Rep: Reputation: 432Reputation: 432Reputation: 432Reputation: 432Reputation: 432
Quote:
Also, please stop wasting everyone's time making special slackware python packages when anyone can "pip install <python package>". Same goes for perl, ruby
The slackware way is to use pkgtools / slackpkg to maintain system: even when customizing slackware, custom slackware packages do I build, though sometimes seeming inconvenient--after scripting the process, it's just all in a days work...
 
3 members found this post helpful.
Old 10-18-2021, 07:55 PM   #67
lovemeslk
Member
 
Registered: Feb 2020
Location: Rantoul IL
Distribution: Slackware
Posts: 350

Rep: Reputation: 72
Done deal what ever Pat wants to use. 3.9 no longer builds so I am sure you will just complain and moan like me then use the tools given.
As you will note pip2 isn't on the file list. but it is there.
So oH well. 2.7 legacy should stay in it as long s there are several thousand programs that need it.
I would prefer that Pat sets his python link to python3 not python2.
Code:
ls -ln /usr/bin/python
lrwxrwxrwx 1 0 0 9 Apr 17  2021 /usr/bin/python -> python2.7
Real issue is the order of install and the guy making the package.
That is the first thing I do when updating.
As you can see
Code:
pip -V
pip 21.3 from /usr/lib64/python3.10/site-packages/pip (python 3.10)
Not on FILELIST.TXT
Code:
grep -r /var/log/packages -e pip2
/var/log/packages/python2-module-collection-2.7.18-x86_64-6:usr/bin/pip2
and
Code:
grep -r /var/log/packages -e pip3
/var/log/packages/python-pip-21.3-x86_64-1:usr/bin/pip3
They can live together. just what one do you want as default.

That becomes an issue for people like me that use the
Code:
~/.local/usr/bin
~/.local/usr/lib
For modules I do not want to install but yet use to build with.
since pip3 is default and python2 is default pyhon.
I have to remember to set the variable for the builds.
But I really do think it is time to make python3 default and pip3 default.
Just my thought.

Last edited by lovemeslk; 10-18-2021 at 08:06 PM.
 
1 members found this post helpful.
Old 10-18-2021, 08:33 PM   #68
lovemeslk
Member
 
Registered: Feb 2020
Location: Rantoul IL
Distribution: Slackware
Posts: 350

Rep: Reputation: 72
/.local

Quote:
Originally Posted by slac-in-the-box View Post
The slackware way is to use pkgtools / slackpkg to maintain system: even when customizing slackware, custom slackware packages do I build, though sometimes seeming inconvenient--after scripting the process, it's just all in a days work...
I disagree the fact is pyhon packaging system was built to coexist with the admin.
You can do all the ~/.local/bin and ~/.local/lib for python sites and eggs.
You need to build a program and keep your system inline with admin. AKA Pat then use the tools Pat gave you.
use them as an user. then when ready to build the package then use the pkgtool program.

These are all tools so use the tools. That Pat gave you.
you want to write scripts.
Code:
python3 setup.py install --root=$PKG
that's fine.
But this will not give you the ever changing dependencies and updates.
This is why building as a user. Is a big deal with the python people.
As I explained before.
Code:
python when invoked looks many places. starts here.
like all Linux /bin holds the executable.
 /usr/bin/ ~/.local/bin same for libraries. /usr/lib /usr/lib64 ~/.local/lib
remember leave admin pristine and install ~./local
none of these are system libraries.
 
Old 10-18-2021, 09:10 PM   #69
lovemeslk
Member
 
Registered: Feb 2020
Location: Rantoul IL
Distribution: Slackware
Posts: 350

Rep: Reputation: 72
Quote:
Originally Posted by volkerdi View Post
I figured we would want the latest version, and upgrading from 3.8 to 3.9 had been uneventful, but we've hit a few more speed bumps with this one so I'm looking for some community feedback. If Slackware 15.0 is only going to ship one version of Python3, which one should it be?
The problem solved was simple. 3.10.0 did not look for 3.09 sites I can look at the scripts figure it out. Now I figured it out. just rebuild your packages and all went good.

This was the issue I had some 3.7, 3.8, 3.9 then 3.10.0 did not look into 3.9 and lower.
Once I figured it out was fix. just rebuilt my packages all done.
Use what ever it takes to fix bugs.
All simple when you figure it out.

Last edited by lovemeslk; 10-18-2021 at 09:11 PM.
 
Old 10-19-2021, 03:41 AM   #70
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,333

Rep: Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046
perfect !
Attached Thumbnails
Click image for larger version

Name:	2021-10-19 10_40_14-What version of Python 3.x should ship with Slackware 15.0_ et 9 pages de pl.png
Views:	68
Size:	3.2 KB
ID:	37507  
 
Old 10-19-2021, 03:58 AM   #71
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,096

Rep: Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173
(3+3)66, the number of the beast!
 
Old 10-19-2021, 07:35 AM   #72
Ilgar
Senior Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware64 15.0, Slackwarearm 14.2
Posts: 1,157

Rep: Reputation: 237Reputation: 237Reputation: 237
To be honest I didn't read the entire thread, so I might be repeating someone else here: The fact that 3.10 broke so many 3.9 scripts seems to be a mismanagement (if at all) on the Python devs' side. If they see this fit then they must be expecting active 3.x users to upgrade their scripts to 3.10, otherwise it would be a mess really. Will 3.10 hold as the "standard" 3.x version? We can't know, it is up to the Python team. But it certainly has better chance (and longer life expectancy) than 3.9, therefore I would support Slackware going for 3.10.
 
Old 10-19-2021, 08:13 AM   #73
brobr
Member
 
Registered: Oct 2003
Location: uk
Distribution: Slackware
Posts: 973

Rep: Reputation: 238Reputation: 238Reputation: 238
Quote:
Originally Posted by Ilgar View Post
To be honest I didn't read the entire thread, so I might be repeating someone else here: The fact that 3.10 broke so many 3.9 scripts seems to be a mismanagement (if at all) on the Python devs' side...
Maybe read the thread. A lot of 'breakage' (also see the thread 'SBo scripts not building on current') is mostly reflecting user's experience before the required recompiling of packages and updating of versions (to match 3.10).
 
1 members found this post helpful.
Old 10-19-2021, 11:30 AM   #74
Ilgar
Senior Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware64 15.0, Slackwarearm 14.2
Posts: 1,157

Rep: Reputation: 237Reputation: 237Reputation: 237
Quote:
Originally Posted by brobr View Post
Maybe read the thread. A lot of 'breakage' (also see the thread 'SBo scripts not building on current') is mostly reflecting user's experience before the required recompiling of packages and updating of versions (to match 3.10).
Thanks for the information (I just didn't have the time to go through it all ). Some real breakages (upstream) can happen though, and in those cases the newer version would be preferable for long term support.

On a side note, although I kind of grew impatient with the new release I am happy that the soon-to-be-relased Rust 1.56 which introduces Rust 2021 support will make it into the new Slackware release. Some pretty important additions were made since the 2018 edition.
 
1 members found this post helpful.
Old 10-19-2021, 11:35 AM   #75
emidevices
Member
 
Registered: May 2016
Location: In a village of La Mancha
Distribution: Slackware, Devuan, NetBSD
Posts: 62

Rep: Reputation: Disabled
Quote:
Originally Posted by ponce View Post
(3+3)66, the number of the beast!
The beast is Python!
Why have we come to depend so much on python? Everything nowadays uses python, and python sucks
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LXer: Ubuntu 16.04 LTS to Ship Without Python 2, Windows Printers Detection Affected LXer Syndicated Linux News 0 03-07-2016 01:21 AM
LXer: Canonical should sell hardware to ship Ubuntu for Android LXer Syndicated Linux News 0 09-01-2012 10:51 PM
LXer: Python Python Python (aka Python 3) LXer Syndicated Linux News 0 08-05-2009 08:30 PM
LXer: News Bits: Red Hat Plans to Ship Next Version of Linux, Gefen ... LXer Syndicated Linux News 0 12-29-2006 09:54 PM

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

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

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