Description of problem: Running python3 -c 'import urllib3' seems to recreate /usr/lib/python3.6/site-packages/urllib3/packages/__pycache__/six.cpython-36.pyc. Version-Release number of selected component (if applicable): python3-urllib3-1.20-1.fc26.noarch How reproducible: Deterministic. Steps to Reproduce: 1. dnf install -y python3-urllib3 2. rpm -Vf /usr/lib/python3.6/site-packages/urllib3/packages/__pycache__/six.cpython-36.pyc 3. Still as root: python3 -c 'import urllib3' 4. rpm -Vf /usr/lib/python3.6/site-packages/urllib3/packages/__pycache__/six.cpython-36.pyc Actual results: The first rpm -Vf passes, the second outputs # rpm -Vf /usr/lib/python3.6/site-packages/urllib3/packages/__pycache__/six.cpython-36.pyc S.5....T. /usr/lib/python3.6/site-packages/urllib3/packages/__pycache__/six.cpython-36.pyc Expected results: Neither rpm -Vf outputs anything because nothing should get changed in /usr in runtime. Additional info: This blocks our docker automation of FreeIPA because changes are reported with docker diff checks.
The Fedora package unbundles the vendored copy of six by symlinking six.py. For Python 2 it also symlinks the pyc file. However the Python 3 package does NOT symlink the pyc file. I assume that is the reason for the issue. https://src.fedoraproject.org/rpms/python-urllib3/blob/master/f/python-urllib3.spec#_96-112
Fixing component (python3-urllib3 is EPEL only)
python-urllib3-1.22-3.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-126d567dd4
python-urllib3-1.20-2.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-389efa1ad9
python-urllib3-1.22-3.fc27 has been pushed to the Fedora 27 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-2017-126d567dd4
python-urllib3-1.20-2.fc26 has been pushed to the Fedora 26 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-2017-389efa1ad9
python-urllib3-1.22-3.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.
python-urllib3-1.20-2.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.