Hi, while I’m waiting to apply the [Stable Update] 2019-12-10 which also and especially brings the update of python to 3.8, I’m investigating on packages/applications which depends on Python.
For now I understood that the packages installed/builded from AUR (those which depends on Python) must be rebuilded, but I'm puzzled for those installed via pip or third-party (eg some that I compiled from some github’s repository).
On my system, eg, I have two folders of two different Python version:
/usr/lib/python3.7/site-packages/: On both folders there are some duplicate things (some are identical which doesn't indicate a version), but some with different version, eg: in the directory
/usr/lib/python3.7/site-packages/ there are numpy and
numpy-1.17.3-py3.7.egg-info folders; in the directory
/usr/lib/python2.7/site-packages/ there are numpy and numpy-1.16.4-py2.7.egg-info. So I used the command
[dave@probook] $ pacman -Qo '/usr/lib/python2.7/site-packages/numpy-1.16.4-py2.7.egg-info' /usr/lib/python2.7/site-packages/numpy-1.16.4-py2.7.egg-info/ is owned by python2-numpy 1.16.4-2 [dave@probook] $ pacman -Qo '/usr/lib/python3.7/site-packages/numpy-1.17.3-py3.7.egg-info' /usr/lib/python3.7/site-packages/numpy-1.17.3-py3.7.egg-info/ is owned by python-numpy 1.17.3-1
pacman -Qi I can see which packages needs python2-numpy and python-numpy; python2-numpy is an optional dependency for pygtk, which is a dependency for a lot of “important” apps for me, like gimp and nmap; is also required by avahi which was installed by default on Manjaro. Python-numpy is needed also for other applications which I installed from Pamac, some from the official repo and something (eg some deps) from AUR.
But apart this example, I ask to myself if the "site-packages" folders are containing some leftover or unneeded stuff, and what will happen with the upgrade to Python 3.8: I guess that upgraded applications/packages which have been rebuilt with python 3.8 will have upgraded needed stuff in the /usr/lib/python3.8/site-packages and maybe will left something in the /usr/lib/python3.7/site-packages folder. Am I right?
I admit that I am a little bit intimidated of the fact that with the upgrade to python 3.8 I will have something which stop to works and also a lot of leftovers.
There is some way/approach to find these leftovers and check if something is broken and in need of manual upgrade (eg stuff installed via pip)?
I'm sorry for all these questions and preoccupations, I admit to be a newbie abouth these specific things.
EDIT: I also discovered that python2 will be deprecated soon: