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 1695677 - python3-createrepo_c: missing Python metadata
Summary: python3-createrepo_c: missing Python metadata
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: createrepo_c
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: amatej
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-04-03 15:18 UTC by Carl George
Modified: 2019-09-25 01:07 UTC (History)
8 users (show)

Fixed In Version: createrepo_c-0.15.1-1.fc30
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-09-25 01:07:36 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


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