From fa28d411858b79feb51179142726f9ba65bc3d5c Mon Sep 17 00:00:00 2001 From: Tomas Orsava Date: Nov 24 2017 18:03:19 +0000 Subject: Add explicit dependency on pip for tests --- 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