From 3449703bd84bb168ad056678dbd56c8b02758e88 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Mon, 15 May 2023 08:19:41 -0400 Subject: [PATCH] Disable tests by default in RHEL builds RHEL does not include all the test dependencies. --- python-flit.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python-flit.spec b/python-flit.spec index 790223d..4e1b344 100644 --- a/python-flit.spec +++ b/python-flit.spec @@ -5,7 +5,8 @@ # Tests are enabled by default, unless we bootstrap. # Disable them to avoid a circular build dependency on requests-download and testpath. -%bcond tests %{without bootstrap} +# RHEL does not have all the test dependencies +%bcond tests %[%{without bootstrap} && ! %[%{defined rhel} && %{undefined epel}]] %global srcname flit