Adjust %check for an EPEL-only virtualenv change

Reference: https://src.fedoraproject.org/rpms/python-virtualenv/c/b0c100d5e8ba11d427bae44d02de7ee4264ea342?branch=epel10

[skip changelog]
This commit is contained in:
Miro Hrončok 2026-04-08 15:03:14 +02:00
commit 8cb4b2b992

View file

@ -126,9 +126,7 @@ export SETUPTOOLS_SCM_PRETEND_VERSION="%{version}"
%check
# Upstream requires virtualenv >= 20.31 for tests, and no longer sets VIRTUALENV_WHEEL.
# To support environments with older virtualenv, we set it manually:
%if v"%(%{python3} -c 'import importlib.metadata as im; print(im.version("virtualenv"))' 2>/dev/null || echo 0)" < v"20.31"
export VIRTUALENV_WHEEL=bundle
%endif
# Skipped tests use internal virtualenv functionality to
# download wheels which does not work with "bundled" version of wheel in