Bug 1709576 - python3-libselinux: missing Python metadata
Summary: python3-libselinux: missing Python metadata
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: libselinux
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Petr Lautrbach
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-05-13 20:59 UTC by Carl George
Modified: 2019-09-11 19:23 UTC (History)
4 users (show)

Fixed In Version: python3-libselinux-2.9-2.fc31.x86_64 libselinux-2.9-3.1.fc30
Clone Of:
Environment:
Last Closed: 2019-05-31 06:18:34 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Carl George 2019-05-13 20:59:38 UTC
Description of problem:
Installing the libselinux Python bindings via the python3-libselinux package is not recognized by Python packaging tools.

Version-Release number of selected component (if applicable):
python3-libselinux-2.8-6.fc29
python3-libselinux-2.9-1.fc30
python3-libselinux-2.9-1.fc31

Steps to Reproduce:
1. dnf install python3-libselinux
2. pip3 list | grep -i selinux

Actual results:
no output

Expected results:
selinux         2.9

Additional info:
I have a CLI tool that imports selinux in order to run a restorecon.  That works, but the tool is installed with a setuptools entry point, which uses pkg_resources to verify all the requirements are installed.  The missing metadata causes pkg_resources to abort the CLI execution.  The only way to work around it is to not list selinux in my setup.py requirements.

Comment 1 Petr Lautrbach 2019-05-31 06:18:34 UTC
^_^ rpm -q python3-libselinux                
python3-libselinux-2.9-2.fc31.x86_64

^_^ pip3 list | grep -i selinux
selinux              2.9

Comment 2 Carl George 2019-06-12 12:42:12 UTC
Thanks Petr for that fix.  Any chance it can be backported to Fedora 30?

Comment 3 Fedora Update System 2019-08-29 14:08:42 UTC
FEDORA-2019-8278841292 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-8278841292

Comment 4 Petr Lautrbach 2019-08-29 14:10:18 UTC
(In reply to Carl George from comment #2)
> Thanks Petr for that fix.  Any chance it can be backported to Fedora 30?

Sure. I prepared the update back in June but then I somehow forgot about it. Sorry.

Comment 5 Fedora Update System 2019-08-30 00:04:57 UTC
libselinux-2.9-3.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-8278841292

Comment 6 Fedora Update System 2019-09-11 19:23:47 UTC
libselinux-2.9-3.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.