Hello Pythonistas.
We are about to update pip in rawhide to 21.3. It does in-tree builds by default and hence if your package sues pyproject-rpm-macros, you won't find it the built stuff in %{_pyproject_builddir} anymore.
The following packages will need changes:
python-numcodecs.spec 72:PYTHONPATH=$(ls -d %{_pyproject_builddir}/pip-req-build-*/build/lib.%{python3_platform}-%{python3_version}) sphinx-build-3 docs html
python-pikepdf.spec 60:PYTHONPATH=$(ls -d %{_pyproject_builddir}/pip-req-build-*/build/lib.%{python3_platform}-%{python3_version}) sphinx-build-3 . ../html
python-matplotlib.spec 302:PYTHONPATH=$(ls -d %{_pyproject_builddir}/pip-req-build-*/build/lib.%{python3_platform}-%{python3_version}) \
rpm-specs/python-pydata-sphinx-theme.spec 81:PYTHONPATH=$(ls -1d $PWD/.pyproject-builddir/pip-req-build-*) make -C docs html
Note that %{_pyproject_builddir} was prefixed with underscore exactly for this reason (packages that use it might need changes).
With pip 21.3+, replacing %{_pyproject_builddir}/pip-req-build-*/build with ${PWD}/build should do. However, that will loose compatibility with older pip.
We only plan to do this change in rawhide.
You can use this copr for testing:
https://copr.fedorainfracloud.org/coprs/churchyard/pip-21.3/
(Pull Request integration is set, so if you send a PR to your pckage, you can observe the results in https://copr.fedorainfracloud.org/coprs/churchyard/pip-21.3/builds/?dirname=...:<number>
python-devel@lists.fedoraproject.org