Bug 2006795

Summary: RHEL 9 Python 3.9: pip contains bundled pre-built exe files in site-packages/pip/_vendor/distlib/
Product: Red Hat Enterprise Linux 9 Reporter: Miro Hrončok <mhroncok>
Component: python-pipAssignee: Charalampos Stratakis <cstratak>
Status: CLOSED ERRATA QA Contact: Lukáš Zachar <lzachar>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0CC: cstratak, pviktori
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-pip-21.2.3-3.el9 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-17 15:37:35 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:
Bug Depends On: 2005453    
Bug Blocks:    

Description Miro Hrončok 2021-09-22 12:50:16 UTC
See bz2005453 for details.

This is a copy for Python 3.9 in RHEL 9.

The following files should not be shipped:

/usr/lib/python3.9/site-packages/pip/_vendor/distlib/w32.exe
/usr/lib/python3.9/site-packages/pip/_vendor/distlib/w64.exe
/usr/lib/python3.9/site-packages/pip/_vendor/distlib/t32.exe
/usr/lib/python3.9/site-packages/pip/_vendor/distlib/t64.exe

Comment 1 Miro Hrončok 2021-10-27 12:36:20 UTC
$ rpm -qlp python3-pip-21.2.3-3.el9.noarch.rpm | grep exe$ | wc -l
0

$ rpm -qlp python3-pip-21.2.3-3.el9.noarch.rpm | grep py$ | wc -l
388

$ rpm2cpio python-pip-wheel-21.2.3-3.el9.noarch.rpm | cpio -idmv
./usr/share/licenses/python-pip-wheel
./usr/share/licenses/python-pip-wheel/LICENSE.txt
./usr/share/python-wheels
./usr/share/python-wheels/pip-21.2.3-py3-none-any.whl
2386 blocks

$ unzip -l ./usr/share/python-wheels/pip-21.2.3-py3-none-any.whl | grep exe$ | wc -l
0

$ unzip -l ./usr/share/python-wheels/pip-21.2.3-py3-none-any.whl | grep py$ | wc -l
388

Comment 6 errata-xmlrpc 2022-05-17 15:37:35 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (new packages: python-pip), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:3908