1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
From: Ole Streicher <olebole@debian.org>
Date: Fri, 31 Jan 2020 13:09:57 +0100
Subject: Disable intersphinx mapping for Debian package builds
Closes: #949464
---
sphinx_astropy/conf/v1.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/sphinx_astropy/conf/v1.py b/sphinx_astropy/conf/v1.py
index de95107..b6d6afe 100644
--- a/sphinx_astropy/conf/v1.py
+++ b/sphinx_astropy/conf/v1.py
@@ -61,6 +61,10 @@ intersphinx_mapping = {
'h5py': ('https://docs.h5py.org/en/stable/', None),
}
+# Disable intersphinx mapping for Debian package builds
+if 'DH_INTERNAL_BUILDFLAGS' in os.environ:
+ intersphinx_mapping = {}
+
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
exclude_patterns = ['_build']
|