From cff51c9550e1bb26e59d10a5c8da4e82eeb8e771 Mon Sep 17 00:00:00 2001 From: Haikel Guemar Date: Mar 05 2018 17:16:14 +0000 Subject: Fix build on EL7 --- 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