When built without debug_build, RPM warns:
File not found: /builddir/build/BUILDROOT/python3.11-3.11.0~b2-1.fc37.x86_64/usr/lib64/python3.11/_sysconfigdata_d_linux_x86_64-linux-gnu.py
File not found: /builddir/build/BUILDROOT/python3.11-3.11.0~b2-1.fc37.x86_64/usr/lib64/python3.11/__pycache__/_sysconfigdata_d_linux_x86_64-linux-gnu.cpython-311*.pyc
This might become an error in some distant future.
e.g. python3-devel now Obsoletes python3.X-devel
We are contemplating splitting alternative Pythons into subpackages, so we need to obsolete each of them from the main Python version.
Related: rhbz#2063227
With modern pip, setuptools is not required on runtime.
Python packages use PEP 517 instead.
Hence, we no longer Recommend setuptools and pip, but pip only.
Users who are impacted may see one of:
ModuleNotFoundError: No module named 'setuptools'
ModuleNotFoundError: No module named 'pkg_resoureces'
They can easily recover by installing python3-setuptools or python3-pkg_resources.
Related but not explicitly part of:
https://fedoraproject.org/wiki/Changes/Reduce_dependencies_on_python3-setuptools
Together with this change, we move the pip Recommendation to the python3-devel package.
"Regular users" of Fedora are less likely to need pip and more likely to brick
their systems with it. If they need pip, they can dnf install pip.
Pip (incl. setuptools) still works in environments created with venv or virtualenv.
Not bumping the release because this only affects the package when we
upgrade the main Python in Fedora to 3.10.
The regex was broken for two+ digit minor version.
Providing python(abi) = 3.10 confuses the dependency resolution in the
Python 3.10 testing copr.
E.g. python3-sphinx requires `python(abi) = 3.10` and `/usr/bin/python3`.
In certain circumstances, dnf installs python3 and python3.10 from rawhide,
satisfying both of the dependencies.
Running `sphinx-build` hence ends up with:
Traceback (most recent call last):
File "/usr/bin/sphinx-build", line 5, in <module>
from sphinx.cmd.build import main
ModuleNotFoundError: No module named 'sphinx'