Use versioned pytest executable in %pytest macro for non-main Python stack

This commit is contained in:
Lumir Balhar 2020-09-07 12:35:33 +02:00
commit 0253654076
2 changed files with 8 additions and 1 deletions

View file

@ -73,7 +73,7 @@
}
# This is intended for Python 3 only, hence also no Python version in the name.
%__pytest /usr/bin/pytest
%__pytest /usr/bin/pytest%(test %{python3_pkgversion} == 3 || echo -%{python3_version})
%pytest %{expand:\\\
CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS}}" LDFLAGS="${LDFLAGS:-${RPM_LD_FLAGS}}"\\\
PATH="%{buildroot}%{_bindir}:$PATH"\\\