From b976e222fc9ada597fe7dedd2e6cc47477e65d4b Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Tue, 12 Feb 2019 21:12:01 -0500 Subject: [PATCH] force python3 if that's all we're building --- koji.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/koji.spec b/koji.spec index 491fccf7..2b33912a 100644 --- a/koji.spec +++ b/koji.spec @@ -48,6 +48,11 @@ %define py3_support 0 %endif +%if ! %{py2_support} +# use python3 +%define __python %{__python3} +%endif + # Compatibility with RHEL. These macros have been added to EPEL but # not yet to RHEL proper. # https://bugzilla.redhat.com/show_bug.cgi?id=1307190