diff -Nru pyregion-2.0/debian/changelog pyregion-2.0/debian/changelog --- pyregion-2.0/debian/changelog 2019-08-06 11:22:34.000000000 +0000 +++ pyregion-2.0/debian/changelog 2020-03-29 22:50:38.000000000 +0000 @@ -1,3 +1,10 @@ +pyregion (2.0-9+rpi1) bullseye-staging; urgency=medium + + * Only delete 'h5py' and 'scipy' from intersphinx_mapping if they + actually exist in there. + + -- Peter Michael Green Sun, 29 Mar 2020 22:50:38 +0000 + pyregion (2.0-9) unstable; urgency=medium * Add dependency (libjs-sphinxdoc) to fix broken symlinks diff -Nru pyregion-2.0/debian/patches/fix-doc-build.patch pyregion-2.0/debian/patches/fix-doc-build.patch --- pyregion-2.0/debian/patches/fix-doc-build.patch 1970-01-01 00:00:00.000000000 +0000 +++ pyregion-2.0/debian/patches/fix-doc-build.patch 2020-03-29 22:50:38.000000000 +0000 @@ -0,0 +1,18 @@ +Description: Only delete 'h5py' and 'scipy' from intersphinx_mapping if they actually exist in there. +Author: Peter Michael Green + +--- pyregion-2.0.orig/docs/conf.py ++++ pyregion-2.0/docs/conf.py +@@ -54,8 +54,10 @@ setup_cfg = dict(conf.items('metadata')) + # -- General configuration ---------------------------------------------------- + + # Remove intersphinx mappings we don't need (for faster docs build) +-del intersphinx_mapping['h5py'] +-del intersphinx_mapping['scipy'] ++if 'h5py' in intersphinx_mapping: ++ del intersphinx_mapping['h5py'] ++if 'scipy' in intersphinx_mapping: ++ del intersphinx_mapping['scipy'] + + + # If your documentation needs a minimal Sphinx version, state it here. diff -Nru pyregion-2.0/debian/patches/series pyregion-2.0/debian/patches/series --- pyregion-2.0/debian/patches/series 2019-07-29 14:30:26.000000000 +0000 +++ pyregion-2.0/debian/patches/series 2020-03-29 22:50:38.000000000 +0000 @@ -1,3 +1,4 @@ no_auto_use_astropy_helpers.patch replace_asscalar.patch Fix-import-failure-from-astropy.tests-on-astropy-3.2.patch +fix-doc-build.patch