From 63cc681fbeba3ca9cba918cbfccbaec8fb938be2 Mon Sep 17 00:00:00 2001 From: Tomas Orsava Date: Thu, 31 Aug 2017 11:40:48 +0200 Subject: [PATCH] Add explicit dependency on pip for tests --- python-setuptools.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python-setuptools.spec b/python-setuptools.spec index db0d8f6..290456b 100644 --- a/python-setuptools.spec +++ b/python-setuptools.spec @@ -1,5 +1,7 @@ %global srcname setuptools +# WARNING When bootstrapping, disable tests as well, +# because tests need pip. # Bootstrapping does not affect the platform-python-setuptools subpackage %bcond_with bootstrap %bcond_without tests @@ -51,6 +53,7 @@ BuildRequires: python2-pip BuildRequires: python2-wheel %endif # without bootstrap %if %{with test} +BuildRequires: python2-pip BuildRequires: python2-pytest BuildRequires: python2-mock BuildRequires: python2-backports-unittest_mock @@ -60,6 +63,7 @@ BuildRequires: python2-backports-unittest_mock %if %{with python3} BuildRequires: python3-devel %if %{with tests} +BuildRequires: python3-pip BuildRequires: python3-pytest BuildRequires: python3-mock %endif # with tests