Bug 1695677

Summary: python3-createrepo_c: missing Python metadata
Product: [Fedora] Fedora Reporter: Carl George <carlwgeorge>
Component: createrepo_cAssignee: amatej
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: amatej, dmach, jmracek, jrohel, mblaha, pkratoch, rpm-software-management, tmlcoch
Target Milestone: ---Keywords: FutureFeature, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: createrepo_c-0.15.1-1.fc30 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-09-25 01:07:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Carl George 2019-04-03 15:18:05 UTC
Description of problem:
Installing the createrepo_c Python bindings via the python3-createrepo_c package is not recognized by Python packaging tools.

Version-Release number of selected component (if applicable):
python3-createrepo_c-0.10.0-19.fc28.x86_64
python3-createrepo_c-0.12.2-1.fc29.x86_64
python3-createrepo_c-0.12.2-1.fc30.x86_64
python3-createrepo_c-0.12.2-1.fc31.x86_64

Steps to Reproduce:
1. dnf install python3-createrepo_c
2. pip3 list | grep createrepo

Actual results:
no output

Expected results:
createrepo-c     <some version>

Additional info:
I'd like pip to be able to recognize the system install of python3-createrepo_c so that way a pip install of local source code doesn't try to install the createrepo_c dependency from PyPI, which fails due to missing development libraries.

Comment 1 Carl George 2019-04-03 15:36:43 UTC
I found that creating a dist-info directory and INSTALLER file works as a temporary workaround for pip to see the system package.  This probably isn't a complete fix but it works for now.

mkdir /usr/lib64/python3.7/site-packages/createrepo_c-0.12.2.dist-info
touch /usr/lib64/python3.7/site-packages/createrepo_c-0.12.2.dist-info/INSTALLER

Source: https://www.riverbankcomputing.com/pipermail/pyqt/2018-May/040350.html

Comment 2 Carl George 2019-04-03 20:56:58 UTC
Nevermind, that doesn't work after all.  It makes it show up in a `pip3 list` but running `pip3 install -e .` or `python3 setup.py install` gives this error.

error: [Errno 2] No such file or directory: '/usr/lib64/python3.7/site-packages/createrepo_c-0.12.2.dist-info/METADATA'

Comment 3 amatej 2019-06-13 09:20:13 UTC
I created a PR: https://github.com/rpm-software-management/createrepo_c/pull/167

It should add the missing metadata to python3-createrepo_c and python2-createrepo_c

Comment 4 Fedora Update System 2019-09-18 11:36:24 UTC
FEDORA-2019-0c7c99d987 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-0c7c99d987

Comment 5 Fedora Update System 2019-09-19 02:20:32 UTC
createrepo_c-0.15.1-1.fc30, drpm-0.4.1-1.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-0c7c99d987

Comment 6 Fedora Update System 2019-09-25 01:07:36 UTC
createrepo_c-0.15.1-1.fc30, drpm-0.4.1-1.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.