Description of problem: On Fedora 31 x86_64 (I haven't checked other versions) on all Python versions (python3.8, 3.7, and 3.6), the following command displays incorrect information: > $ python3.6-config --configdir > /usr/lib/python3.6/config-3.6m-x86_64-linux-gnu > $ python3.7-config --configdir > /usr/lib/python3.7/config-3.7m-x86_64-linux-gnu > $ python3.8-config --configdir > /usr/lib/python3.7/config-3.8-x86_64-linux-gnu In all cases it points to /usr/lib, when it should point to /usr/lib64, where the file actually exists. E.g.: > $ ls -alh /usr/lib/python3.7/config-3.7m-x86_64-linux-gnu > ls: cannot access '/usr/lib/python3.7/config-3.7m-x86_64-linux-gnu': No such file or directory > $ ls -alh /usr/lib64/python3.7/config-3.7m-x86_64-linux-gnu > total 228K > drwxr-xr-x. 3 root root 4.0K Nov 2 12:41 . > drwxr-xr-x. 31 root root 12K Nov 2 12:41 .. > drwxr-xr-x. 2 root root 4.0K Nov 2 12:41 __pycache__ > -rw-r--r--. 1 root root 3.4K Oct 17 07:30 config.c > -rw-r--r--. 1 root root 1.6K Oct 14 18:32 config.c.in > -rwxr-xr-x. 1 root root 7.0K Oct 14 18:32 install-sh > -rw-r--r--. 1 root root 74K Oct 17 07:30 Makefile > -rwxr-xr-x. 1 root root 7.7K Oct 14 18:32 makesetup > -rwxr-xr-x. 1 root root 1.9K Oct 17 07:30 python-config.py > -rw-r--r--. 1 root root 82K Oct 17 08:16 python.o > -rw-r--r--. 1 root root 15K Oct 17 07:30 Setup > -rw-r--r--. 1 root root 41 Oct 17 07:30 Setup.local This works fine on Debian (namely, `python3-config --configdir` points to a directory that exists). Version-Release number of selected component (if applicable): python3-3.7.5-1.fc31.x86_64 python36-3.6.9-2.fc31.x86_64 python38-3.8.0-1.fc31.x86_64 How reproducible: Very Steps to Reproduce: 1. Run python3-config --configdir 2. Try ls-ing the printed path path. Actual results: Returned directory doesn't exist. :o /o\ Expected results: Returned directory should exist!
Thanks for the report! I acknowledge that this is a bug.
> $ python3.8-config --configdir > /usr/lib/python3.7/config-3.8-x86_64-linux-gnu Strange, I get a different result on Fedora 31 with python38-3.8.0-1.fc31.x86_64: $ python3.8-config --configdir /usr/lib64/python3.8/config-3.8-x86_64-linux-gnu $ ls /usr/lib64/python3.8/config-3.8-x86_64-linux-gnu config.c config.c.in install-sh* Makefile makesetup* __pycache__/ python-config.py* python.o Setup Setup.local > In all cases it points to /usr/lib, when it should point to /usr/lib64, where the file actually exists. E.g.: I confirm the issue with python3-3.7.5-1.fc31.x86_64: $ python3-config --configdir /usr/lib/python3.7/config-3.7m-x86_64-linux-gnu $ ls /usr/lib/python3.7/config-3.7m-x86_64-linux-gnu ls: cannot access '/usr/lib/python3.7/config-3.7m-x86_64-linux-gnu': No such file or directory $ ls /usr/lib/python3.7/ site-packages/ It's an issue in the python3-config program, the directory exists: $ ls /usr/lib64/python3.7/config-3.7m-x86_64-linux-gnu config.c config.c.in install-sh* Makefile makesetup* __pycache__/ python-config.py* python.o Setup Setup.local
Ah no, I think you're right here. Weird, I thought I had this issue with 3.8 but I guess I'm not able to reproduce it any more.
It probably doesn't make sense to backport to older Pythons/Fedoras. Please reopen if you disagree.
Python 3.6 on RHEL 8 is also impacted: bz#1772992. I reopen this issue to first fix the bug in python37 package of Rawhide: https://src.fedoraproject.org/rpms/python37/pull-request/45 fix. My plan is then to backport the fix to fc32 and fc31, and then to RHEL Python 3.6.
This issue was fixed downstream in Python 3.8 to solve bz#1710767: https://src.fedoraproject.org/rpms/python3/c/7aab0ddc87c4c8476c8077800e765e52480fbc4d?branch=master But Python 3.7 and older were not fixed.
FEDORA-2020-91aa1ba2f7 has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2020-91aa1ba2f7
FEDORA-2020-865971c39b has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-865971c39b
FEDORA-2020-91aa1ba2f7 has been pushed to the Fedora 31 testing repository. In short time you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-91aa1ba2f7` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-91aa1ba2f7 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2020-865971c39b has been pushed to the Fedora 32 testing repository. In short time you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-865971c39b` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-865971c39b See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2020-2112eaed6c has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-2112eaed6c
FEDORA-2020-f8b74a5300 has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2020-f8b74a5300
FEDORA-2020-f8b74a5300 has been pushed to the Fedora 31 testing repository. In short time you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-f8b74a5300` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-f8b74a5300 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2020-2112eaed6c has been pushed to the Fedora 32 testing repository. In short time you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-2112eaed6c` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-2112eaed6c See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
python37-3.7.7-3.fc32 has been pushed to the Fedora 32 stable repository. If problems still persist, please make note of it in this bug report.
python36-3.6.10-5.fc32 has been pushed to the Fedora 32 stable repository. If problems still persist, please make note of it in this bug report.
python36-3.6.10-5.fc31 has been pushed to the Fedora 31 stable repository. If problems still persist, please make note of it in this bug report.
FEDORA-2020-f8b74a5300 has been pushed to the Fedora 31 stable repository. If problem still persists, please make note of it in this bug report.