| |
@@ -10,10 +10,10 @@
|
| |
# https://docs.pytest.org/en/latest/reference.html#confval-norecursedirs
|
| |
%_pyproject_builddir %{_builddir}%{?buildsubdir:/%{buildsubdir}}/.pyproject-builddir
|
| |
|
| |
- %pyproject_files %{_builddir}/pyproject-files
|
| |
- %_pyproject_modules %{_builddir}/pyproject-modules
|
| |
- %_pyproject_ghost_distinfo %{_builddir}/pyproject-ghost-distinfo
|
| |
- %_pyproject_record %{_builddir}/pyproject-record
|
| |
+ %pyproject_files %{_builddir}%{?buildsubdir:/%{buildsubdir}}/pyproject-files
|
| |
+ %_pyproject_modules %{_builddir}%{?buildsubdir:/%{buildsubdir}}/pyproject-modules
|
| |
+ %_pyproject_ghost_distinfo %{_builddir}%{?buildsubdir:/%{buildsubdir}}/pyproject-ghost-distinfo
|
| |
+ %_pyproject_record %{_builddir}%{?buildsubdir:/%{buildsubdir}}/pyproject-record
|
| |
|
| |
# Avoid leaking %%{_pyproject_builddir} to pytest collection
|
| |
# https://bugzilla.redhat.com/show_bug.cgi?id=1935212
|
| |
Apparently, when you repeatedly run
rpmbuild -ba
, pyproject-record is not cleaned.This way, we at least make sure the files are located within the appropriate build directory,
so 2 different builds don't share the files between each other.
Keeping files contained in the build subdirectory is the common way of doing things anyway.
Should be backwards compatible, as we only modify underscore-prefixed macros.