[python-extras/el6] Break circular deps with python-testtools when bootstrapping python-extras

Haïkel Guémar hguemar at fedoraproject.org
Fri Mar 6 16:30:17 UTC 2015


commit c4025a4183cc269a69d4bbafd35ac492b1628e98
Author: Haikel Guemar <hguemar at fedoraproject.org>
Date:   Fri Mar 6 17:29:32 2015 +0100

    Break circular deps with python-testtools when bootstrapping python-extras

 python-extras.spec | 9 +++++++++
 1 file changed, 9 insertions(+)
---
diff --git a/python-extras.spec b/python-extras.spec
index 54808ae..a9febcf 100644
--- a/python-extras.spec
+++ b/python-extras.spec
@@ -2,6 +2,10 @@
 %global with_python3 1
 %endif
 
+# we have a circular build dep with python-testtools
+# when running test suite
+%global run_check 1
+
 Name:           python-extras
 Version:        0.0.3
 Release:        2%{?dist}
@@ -14,12 +18,16 @@ Source0:        https://pypi.python.org/packages/source/e/extras/extras-%{versio
 BuildArch:      noarch
 BuildRequires:  python-devel
 BuildRequires:  python-setuptools
+%if 0%{?run_check}
 BuildRequires:  python-testtools
+%endif
 %if 0%{?with_python3}
 BuildRequires:  python3-devel
 BuildRequires:  python3-setuptools
+%if 0%{?run_check}
 BuildRequires:  python3-testtools
 %endif
+%endif
 
 %description
 extras is a set of extensions to the Python standard library, originally
@@ -75,6 +83,7 @@ popd
 %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
 
 %check
+%if 0%{?run_check}
 %{__python} setup.py test
 
 %if 0%{?with_python3}


More information about the scm-commits mailing list