Use versioned pytest executable in %pytest macro for non-main Python stack
This commit is contained in:
parent
431e4380cc
commit
0253654076
2 changed files with 8 additions and 1 deletions
|
|
@ -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"\\\
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue