From cff51c9550e1bb26e59d10a5c8da4e82eeb8e771 Mon Sep 17 00:00:00 2001 From: Haikel Guemar Date: Mon, 5 Mar 2018 17:16:14 +0000 Subject: [PATCH] Fix build on EL7 --- python-wheel.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python-wheel.spec b/python-wheel.spec index f5702b6..112755d 100644 --- a/python-wheel.spec +++ b/python-wheel.spec @@ -2,6 +2,11 @@ # bcond_with bootstrap = tests enabled %bcond_with bootstrap +# Note(hguemar): EL7 has no python3 stack but EPEL does +%if 0%{?rhel} && 0%{?rhel} <= 7 && 0%{!?epel:1} +%define _without_python3 1 +%endif + %bcond_without python2 %bcond_without python3