14
0
2024-11-05 22:29:43 +00:00
committed by Git OBS Bridge
parent 588c041043
commit 9e14eb3740

View File

@@ -91,7 +91,7 @@ the wheel needs to be used directly in test or install setups
rm -f setuptools/*.exe
%build
%if !%{with test}
%if %{without test}
%{python_expand # bootstrap with built-in pip
$python -m venv build/env
build/env/bin/python -m ensurepip
@@ -101,7 +101,7 @@ export PYTHONPATH=build/env/lib/python%{$python_bin_suffix}/site-packages
%endif
%install
%if !%{with test}
%if %{without test}
%{python_expand # use pip bootstrapped above
export PYTHONPATH=build/env/lib/python%{$python_bin_suffix}/site-packages
%{$python_pyproject_install}
@@ -133,7 +133,7 @@ donttest+=" or test_setup_requires_with_transitive_extra_dependency"
%pytest -rfE -n auto -k "not ($donttest)"
%endif
%if !%{with test}
%if %{without test}
%files %{python_files}
%if !%{with wheel}
%license LICENSE