File: use-local-intersphinx.patch

package info (click to toggle)
python-dugong 3.7.4%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 524 kB
  • sloc: python: 2,714; makefile: 25; sh: 7
file content (27 lines) | stat: -rw-r--r-- 914 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From: Nikolaus Rath <Nikolaus@rath.org>
Date: Thu, 8 Oct 2015 11:58:34 -0700
Subject: Use local intersphinx inventory

Forwarded: not-needed
Last-Update: 2014-03-11
 Instead of downloading the Python intersphinx directory
 at build time, use the cached copy shipped in debian/.
Patch-Name: use-local-intersphinx.patch
---
 rst/conf.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/rst/conf.py b/rst/conf.py
index f312145..851f20c 100644
--- a/rst/conf.py
+++ b/rst/conf.py
@@ -8,7 +8,8 @@ import os.path
 sys.path.append(os.path.abspath('..'))
 
 extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx' ]
-intersphinx_mapping = {'python': ('http://docs.python.org/3/', None) }
+intersphinx_mapping = {'python': ('http://docs.python.org/3/',
+                                  '../debian/python.inv')}
 templates_path = ['_templates']
 source_suffix = '.rst'
 source_encoding = 'utf-8'