Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1422897 - gerrymander: gerrymander-1.5-5 requires both Python 2 and Python 3
Summary: gerrymander: gerrymander-1.5-5 requires both Python 2 and Python 3
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: gerrymander
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Kashyap Chamarthy
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3
TreeView+ depends on / blocked
 
Reported: 2017-02-16 14:02 UTC by Iryna Shcherbina
Modified: 2017-02-27 16:21 UTC (History)
3 users (show)

Fixed In Version: gerrymander-1.5-6.fc26
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-02-27 16:21:14 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Patch to fix Python 2 dependency (deleted)
2017-02-16 14:16 UTC, Iryna Shcherbina
no flags Details

Description Iryna Shcherbina 2017-02-16 14:02:28 UTC
This package started to require Python 2 starting version 1.5-5 :

$ dnf repoquery --disablerepo=* --enablerepo=rawhide --requires gerrymander
/usr/bin/python2
python3-gerrymander


Except in very special circumstances, there is no need for one package
to drag in both Python stacks. Usually, this is a packaging error: in this case the Python 3 executable does not override the Python 2 one during installation.

Please remove the stray dependency. There is a section on %install in  in the Python RPM Porting Guide [0] which covers this issue.

It's ok to do this in Rawhide only, however, it would be greatly
appreciated if you could push it to Fedora 25 as well.


If anything is unclear, or if you need any kind of assistance, you can
ask on IRC (#fedora-python on Freenode), or reply here. We'll be happy
to help investigating or fixing this issue!


[0] https://python-rpm-porting.readthedocs.io/en/latest/application-modules.html#install

Comment 1 Iryna Shcherbina 2017-02-16 14:16:44 UTC
Created attachment 1250875 [details]
Patch to fix Python 2 dependency

This simple change should fix it.

Koji scratch build: https://koji.fedoraproject.org/koji/taskinfo?taskID=17899435


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