forked from pool/python-setuptools
Negations are poorly visible.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools?expand=0&rev=271
This commit is contained in:
@@ -91,7 +91,7 @@ the wheel needs to be used directly in test or install setups
|
|||||||
rm -f setuptools/*.exe
|
rm -f setuptools/*.exe
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if !%{with test}
|
%if %{without test}
|
||||||
%{python_expand # bootstrap with built-in pip
|
%{python_expand # bootstrap with built-in pip
|
||||||
$python -m venv build/env
|
$python -m venv build/env
|
||||||
build/env/bin/python -m ensurepip
|
build/env/bin/python -m ensurepip
|
||||||
@@ -101,7 +101,7 @@ export PYTHONPATH=build/env/lib/python%{$python_bin_suffix}/site-packages
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%if !%{with test}
|
%if %{without test}
|
||||||
%{python_expand # use pip bootstrapped above
|
%{python_expand # use pip bootstrapped above
|
||||||
export PYTHONPATH=build/env/lib/python%{$python_bin_suffix}/site-packages
|
export PYTHONPATH=build/env/lib/python%{$python_bin_suffix}/site-packages
|
||||||
%{$python_pyproject_install}
|
%{$python_pyproject_install}
|
||||||
@@ -133,7 +133,7 @@ donttest+=" or test_setup_requires_with_transitive_extra_dependency"
|
|||||||
%pytest -rfE -n auto -k "not ($donttest)"
|
%pytest -rfE -n auto -k "not ($donttest)"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if !%{with test}
|
%if %{without test}
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%if !%{with wheel}
|
%if !%{with wheel}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
Reference in New Issue
Block a user