From ba2118865d4e86470fdc22f4fb0f976942f43679 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Sat, 12 May 2018 00:53:31 +0200 Subject: [PATCH] Add a Python 3 bootstrapping bcond --- python2.spec | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/python2.spec b/python2.spec index d15b497..8aa14df 100644 --- a/python2.spec +++ b/python2.spec @@ -12,6 +12,10 @@ # (the -debug subpackages) %bcond_without debug_build +# Only use this when bootstrapping python3 +# Needed to build setuptools for the first time +%bcond_with python3_bootstrap + %global unicode ucs4 %global python python2 @@ -809,9 +813,15 @@ Group: Development/Libraries Requires: %{python}%{?_isa} = %{version}-%{release} Requires: python-rpm-macros Requires: python2-rpm-macros -Requires: python3-rpm-generators Requires: pkgconfig +%if %{without python3_bootstrap} +# When bootstrapping python3, we need to build setuptools +# But setuptools BR python2-devel and that brings in python3-rpm-generators +# python3-rpm-generators needs python3-setuptools, so we cannot have it yet +Requires: python3-rpm-generators +%endif + # https://bugzilla.redhat.com/show_bug.cgi?id=1217376 # https://bugzilla.redhat.com/show_bug.cgi?id=1496757 # https://bugzilla.redhat.com/show_bug.cgi?id=1218294