You are not logged in.

#1 2019-08-18 16:18:45

askmyhat
Member
Registered: 2019-08-18
Posts: 1

Python 2 libraries have no python 2 interpreter in their dependencies

I have just found that I have many python 2 files installed on my system by some packages while python 2 interpreter is not in dependencies of any of them thus it is not installed. Why and how does it work then?

$ pacman -Qo *
/usr/lib/python2.7/site-packages/avahi/ is owned by avahi 0.7+18+g1b5f401-2
/usr/lib/python2.7/site-packages/clang/ is owned by clang 8.0.1-1
/usr/lib/python2.7/site-packages/drv_libxml2.py is owned by libxml2 2.9.9-2
/usr/lib/python2.7/site-packages/gi/ is owned by libibus 1.5.20-2
/usr/lib/python2.7/site-packages/imobiledevice.so is owned by libimobiledevice 1.2.0+87+g92c5462-1
/usr/lib/python2.7/site-packages/libproxy.py is owned by libproxy 0.4.15-10
/usr/lib/python2.7/site-packages/libxml2mod.so is owned by libxml2 2.9.9-2
/usr/lib/python2.7/site-packages/libxml2.py is owned by libxml2 2.9.9-2
/usr/lib/python2.7/site-packages/libxsltmod.so is owned by libxslt 1.1.33-1
/usr/lib/python2.7/site-packages/libxslt.py is owned by libxslt 1.1.33-1
/usr/lib/python2.7/site-packages/plist.so is owned by libplist 2.0.0+11+gec9ba8b-2
/usr/lib/python2.7/site-packages/snack.py is owned by libnewt 0.52.21-1
/usr/lib/python2.7/site-packages/_snack.so is owned by libnewt 0.52.21-1
/usr/lib/python2.7/site-packages/team/ is owned by libteam 1.29-1
/usr/lib/python2.7/site-packages/team-1.0-py2.7.egg-info is owned by libteam 1.29-1
$ pacman -Qi python2
error: package 'python2' was not found

Last edited by askmyhat (2019-08-18 16:23:47)

Offline

#2 2019-08-18 16:25:37

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,466

Re: Python 2 libraries have no python 2 interpreter in their dependencies

I don't see the problem here. Some of them will have optional deps, others will add functionality to something else.

Offline

#3 2019-08-21 15:15:46

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: Python 2 libraries have no python 2 interpreter in their dependencies

/usr/lib/python2.7/site-packages/clang/ is owned by clang 8.0.1-1

That one is there because extra/clang is built with support for both python2 and python3 .
python2 is a makedepend, maybe it should also be listed as an optional dependency.

While it may be cleaner if extra/clang only supported python3, it shouldn't give problems.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#4 2019-08-22 01:27:40

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,354

Re: Python 2 libraries have no python 2 interpreter in their dependencies

An unspoken assumption here seems to be that every installed file would serve a purpose/work. That is not necessarily the case, because makedepends/optdepends mean that it's normally more convenient to have those files in the event that a user needs them rather than following the debian "let's split everything to another package" route.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

Board footer

Powered by FluxBB