FS#62238 - pygtk, pygobject, python-gobject (namings and dependencies)

Attached to Project: Community Packages
Opened by Doron Behar (doronbehar) - Friday, 05 April 2019, 09:06 GMT
Last edited by Doug Newgard (Scimmia) - Friday, 05 April 2019, 13:05 GMT
Task Type General Gripe
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Continuing from my post on the forum: https://bbs.archlinux.org/viewtopic.php?pid=1838138

I wanted to raise the issue of the packages named in the summary of this bug report. The main issue is that pygtk depends on `python2-cairo` and `python2-gobject2` which both depend on `python2` but by looking at the upstream installation instructions and in comparison to the dependency chain of other distributions, it seems python2 shouldn't be a dependency. Many packages which depend on pygtk use python3 but become dependent in python2 consequently.
This task depends upon

Closed by  Doug Newgard (Scimmia)
Friday, 05 April 2019, 13:05 GMT
Reason for closing:  Not a bug
Additional comments about closing:  pygtk uses python2. Nothing wrong here
Comment by Antonio Rojas (arojas) - Friday, 05 April 2019, 09:19 GMT
Can you name some of those many packages?
Comment by Doron Behar (doronbehar) - Friday, 05 April 2019, 09:30 GMT
I've explained it with more details and listed these in the forum's thread:

- pygtk
- gnome-python
- python-gobject
- pygobject-devel
- pygobject2-devel
Comment by Antonio Rojas (arojas) - Friday, 05 April 2019, 09:38 GMT
gnome-python doesn't use python3, and the gobjects ones don't depend on pygtk. I'm asking for an example of "Many packages which depend on pygtk use python3"
Comment by Doron Behar (doronbehar) - Friday, 05 April 2019, 12:14 GMT
Correct. Excuse me for not being totally clear as for the specific packages and the problems with them. I'd like please to discuss the issue I presented in the forum thread part by part. I think it would have been better to move the discussion over there because but I won't mind summarizing it here:

1. Why are there so many packages that their upstream URL is https://pygtk.org ? Doesn't it mean that they are all produced out of the same source tree? If so, what made you name them like that - some start with `python-` prefix and some with only `py` prefix?
2. I can see now, that `pygtk` and `gnome-python`, both provide files which belong to python2. Note that they are both considered archived according to Gnome: https://gitlab.gnome.org/Archive/gnome-python, https://gitlab.gnome.org/Archive/pygtk . What made me so confused was the fact that the URL is https://pygtk.org but the actual source tree for these packages is different and unrelated because it is being redirected to http://pygobject.readthedocs.io/ . Additionally, their names don't have any prefix that suggests they are for python2 only.
3. On my machine, there is only 1 package that is supposed to depend on python3 but it depends on pygtk and it runs with python2: arandr, see this URL: http://christian.amsuess.com/tools/arandr/#dependencies
4. One more smaller issue: How come python-gobject depends on pygobject-devel which provides only `.pc` (pkg-config) file and 1 header file?

I think the main issue here is the packages' naming and URLs. Some of them provide files for python2 but their name doesn't suggest that at all and their upstream URL suggests they are derived from http://pygobject.readthedocs.io/ but they are actually considered archived by the Gnome developers.

As for the package `arandr`, I've asked upstream as for this confusion here: https://gitlab.com/arandr/arandr/issues/32 and it seems it's not actually python3 and it does depend on the pygtk *python2* library.

Loading...