Bug 1747978 - python27 should not pull in TK
Summary: python27 should not pull in TK
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: python27
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miro Hrončok
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-09-02 11:41 UTC by Vít Ondruch
Modified: 2019-09-02 12:56 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-09-02 12:56:07 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Vít Ondruch 2019-09-02 11:41:23 UTC
Description of problem:
Although I have Python 2 installed on my computer, it was never necessary to have TK installed. However, python27 package now tries to pull in tk package

~~~
 Problem 1: package python27-2.7.16-9.fc32.x86_64 requires libtk8.6.so()(64bit), but none of the providers can be installed
  - cannot install the best update candidate for package python2-2.7.16-7.fc32.x86_64
  - package tk-1:8.6.8-1.fc30.x86_64 is excluded
~~~

I think this is wrong.

Actually the problem appears much bigger, comparing the python2 vs python27 requires. It seems that this is due to monolithical python27, while the python2 had quite some subpackage.


Version-Release number of selected component (if applicable):
python27-2.7.16-9.fc32.x86_64


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:
TK is pulled in (at least that is the one visible dependency).


Expected results:
No additional library is pulled in when python27 replaces python2


Additional info:

Comment 1 Miro Hrončok 2019-09-02 11:47:35 UTC
tkinter requires tk. tkinter is part of the Python standard library. The monolithic package leads to this. The problem is same for any other monolithic Python package like python26, python27, python34, python35, python36, python37, python38 or even pypy-libs and pypy3-libs, and python3-debug.

As there is a way to fix this (split tkinter into a subpackage), Python 2 is deprecated and we don't have any more energy to spend on this package, hence we turned it to be monolithic as described in https://fedoraproject.org/wiki/Changes/RetirePython2#The_python27_package

Comment 2 Vít Ondruch 2019-09-02 12:51:35 UTC
(In reply to Miro Hrončok from comment #1)
> tkinter requires tk. tkinter is part of the Python standard library. The
> monolithic package leads to this. The problem is same for any other
> monolithic Python package like python26, python27, python34, python35,
> python36, python37, python38 or even pypy-libs and pypy3-libs, and
> python3-debug.
> 
> As there is a way to fix this (split tkinter into a subpackage), Python 2 is
> deprecated and we don't have any more energy to spend on this package

Right, probably better spend some time on:

https://bugzilla.redhat.com/show_bug.cgi?id=1737908

Since this is the only remaining package on my system requiring Python 2 😇

> hence
> we turned it to be monolithic as described in
> https://fedoraproject.org/wiki/Changes/RetirePython2#The_python27_package

Comment 3 Miro Hrončok 2019-09-02 12:56:07 UTC
Thanks for understanding.


Note You need to log in before you can comment on or make changes to this bug.