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:
parent
62ab817d28
commit
8cb4b2b992
1 changed files with 0 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue