LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-21-2019, 12:24 AM   #1
marrowsuck
Member
 
Registered: Sep 2006
Posts: 202

Rep: Reputation: 89
Python-3.7.2 arrived in current


I've waited for this. No all that's left is the final switch to python -> python3.

Many thanks !
 
Old 02-21-2019, 05:57 PM   #2
khronosschoty
Member
 
Registered: Jul 2008
Distribution: Slackware
Posts: 648
Blog Entries: 2

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
:-)
 
Old 02-22-2019, 05:25 AM   #3
teoberi
Member
 
Registered: Jan 2018
Location: Romania
Distribution: Slackware64-current (servers)/Windows 11/Ubuntu (workstations)
Posts: 607

Rep: Reputation: 349Reputation: 349Reputation: 349Reputation: 349
And break all the modules compiled with the previous version of Python (3.6). Ex. pypolicyd-spf.
 
Old 02-22-2019, 11:55 AM   #4
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by teoberi View Post
And break all the modules compiled with the previous version of Python (3.6). Ex. pypolicyd-spf.
Breakages are expected to happen on -current with 3rd-party packages when upgrades like this occur. It is just one of the things that you have to deal with when you run -current.
 
Old 02-22-2019, 01:21 PM   #5
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Quote:
Originally Posted by teoberi View Post
And break all the modules compiled with the previous version of Python (3.6). Ex. pypolicyd-spf.
Post a complete list please.
 
Old 02-22-2019, 04:18 PM   #6
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by dugan View Post
Post a complete list please.
I think it was just because it was compiled against python3.6. My guess is it and its dependencies just needs to be compiled against python3.7. Pat recompiled many python programs when he migrated to 3.7.
 
Old 02-22-2019, 04:22 PM   #7
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Aah, right. . In that case, you can just look in /usr/lib64/python3.6/site-packages for the list.
 
Old 02-22-2019, 04:25 PM   #8
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,335

Rep: Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930
Quote:
Originally Posted by teoberi View Post
And break all the modules compiled with the previous version of Python (3.6). Ex. pypolicyd-spf.
If no like breakegaes, go then with stable 14.2 , but if you use slackbuilds , bad notives for you , migration to 3.7 are testing ..hahaha


https://git.slackbuilds.org/slackbui...87cc158e7ad7c8
 
Old 02-22-2019, 05:18 PM   #9
marrowsuck
Member
 
Registered: Sep 2006
Posts: 202

Original Poster
Rep: Reputation: 89
To list all your packages with python3.6 modules you can use this command:
Quote:
grep "usr/lib64/python3.6/" /var/log/packages/* | awk -F ":" '{ print $1 }' | uniq
 
2 members found this post helpful.
Old 02-22-2019, 05:58 PM   #10
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Quote:
Originally Posted by marrowsuck View Post
To list all your packages with python3.6 modules you can use this command:
I had more fun with it and updated your command to just show package names and make it work with both 32bit and 64bit Slackware.

Code:
grep "/python3.6/" /var/log/packages/* | awk -F ":" '{ print $1 }' | uniq | cut -d/ -f5 | rev | cut -d- -f4- | rev
 
1 members found this post helpful.
Old 02-23-2019, 01:26 AM   #11
teoberi
Member
 
Registered: Jan 2018
Location: Romania
Distribution: Slackware64-current (servers)/Windows 11/Ubuntu (workstations)
Posts: 607

Rep: Reputation: 349Reputation: 349Reputation: 349Reputation: 349
My post was not a complaint but just a little alert.
I've been using Slackware-current for a few years, so I like breakages though there are few (in the case of major updates for Perl, Python, Dovecot, etc.).
I do not use Slackbuilds because the compilation options are not always what I want (sometimes even some original Slackware packages), so I compile them from sources.
In my post I have referred to modules compiled by me not to those included in Slackware, for example those required for pypolicyd-spf.

Last edited by teoberi; 02-23-2019 at 09:02 AM.
 
Old 02-23-2019, 04:28 AM   #12
chrisVV
Member
 
Registered: Aug 2010
Posts: 548

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
I have noticed one oddity with python-3.7. Packages installed with the --user option ('python3 setup.py install --user'), including with pip ('pip3 install --user [package]'), using slackware64-current appear in $HOME/.local/lib64/python[2.7][3.6]/site-packages with python-2.7 and python-3.6, but in $HOME/.local/lib/python3.7/site-packages with python-3.7.

That is to say, they are installed in the user's local lib directory rather than the lib64 directory. Despite that, they appear to work fine.
 
  


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
I got error while installing python-tk python-psycopg2 python-twisted saili kadam Linux - Newbie 1 09-05-2015 03:03 AM
LXer: Python Python Python (aka Python 3) LXer Syndicated Linux News 0 08-05-2009 08:30 PM
python: can you update the current shell from python? BrianK Programming 4 01-31-2008 12:18 AM
King of Newbies has arrived... I.E. > HELP!!! NeonGundam Linux - Newbie 5 09-21-2003 05:50 PM
just arrived Cal state last week shoot2kill General 7 03-27-2003 04:31 PM

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

All times are GMT -5. The time now is 10:51 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