From 24749727a5dd7cf573d7019a979ad1027ca5e134605f866c78e4d70da7e76da0 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 13 Aug 2024 06:23:28 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pip?expand=0&rev=132 --- python-pip.spec | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/python-pip.spec b/python-pip.spec index 84423e5..e702f0a 100644 --- a/python-pip.spec +++ b/python-pip.spec @@ -29,7 +29,6 @@ %else %bcond_with libalternatives %endif - # in order to avoid rewriting for subpackage generator %define mypython python %{?sle15_python_module_pythons} @@ -66,13 +65,13 @@ Requires(post): update-alternatives Requires(postun): update-alternatives %endif %if %{with test} -# Test requirements: -BuildRequires: %{python_module pip = %{version}} BuildRequires: %{python_module PyYAML} BuildRequires: %{python_module Werkzeug} BuildRequires: %{python_module cryptography} BuildRequires: %{python_module freezegun} BuildRequires: %{python_module installer} +# Test requirements: +BuildRequires: %{python_module pip = %{version}} BuildRequires: %{python_module pretend} BuildRequires: %{python_module pytest-xdist} BuildRequires: %{python_module pytest} @@ -91,7 +90,7 @@ pip-installable as well. %package wheel Summary: The pip wheel for custom tests and install requirements -Requires: %mypython(abi) = %python_version +Requires: %{mypython(abi)} = %{python_version} %description wheel This packages provides the pip wheel as separate file for cases where @@ -135,7 +134,7 @@ install -D -m 0644 -t %{buildroot}%{$python_sitelib}/../wheels dist/*.whl } %{python_expand # Fix shebang path for "pip3.XX" binaries -sed -i "1s|#\!.*python.*|#\!/usr/bin/$python|" %{buildroot}%{_bindir}/pip%{$python_bin_suffix} +sed -i "1s|#\!.*python.*|#\!%{_bindir}/$python|" %{buildroot}%{_bindir}/pip%{$python_bin_suffix} } %python_clone -a %{buildroot}%{_bindir}/pip