From aff6579dc231e903d6e15bcd34ee220f2aa61fb1 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Fri, 14 Jun 2024 22:46:28 -0400 Subject: [PATCH] [Doc] Quietly ignore missing scikits.odes --- doc/sphinx/conf.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/sphinx/conf.py b/doc/sphinx/conf.py index 4ed1360f3..7cbe02f7d 100644 --- a/doc/sphinx/conf.py +++ b/doc/sphinx/conf.py @@ -96,6 +96,13 @@ skip_run = { "multiprocessing_viscosity.py", } +# Installing scikits.odes is challenging on lots of systems (such as Apple Silicon), so +# just skip running this example if it's not present. +try: + import scikits.odes +except ImportError: + skip_run.add("1D_packed_bed.py") + def executable_script(src_file, gallery_conf): """Validate if script has to be run according to gallery configuration.