From a5cef79f49350a8162bc9342da712f415d41001d Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Sep 14 2011 04:09:45 +0000 Subject: add a way to easily turn off the %check section --- diff --git a/python3.spec b/python3.spec index c2d3e33..fd40fd3 100644 --- a/python3.spec +++ b/python3.spec @@ -64,6 +64,9 @@ # Change from yes to no to turn this off %global with_computed_gotos yes +# Turn this to 0 to turn off the "check" phase: +%global run_selftest_suite 1 + # We want to byte-compile the .py files within the packages using the new # python3 binary. # @@ -952,12 +955,16 @@ CheckPython() { } +%if 0%{run_selftest_suite} + # Check each of the configurations: %if 0%{?with_debug_build} CheckPython debug %endif # with_debug_build CheckPython optimized +%endif # run_selftest_suite + # ====================================================== # Cleaning up