File: no-network.patch

package info (click to toggle)
dipy 1.11.0-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 17,144 kB
  • sloc: python: 92,240; makefile: 272; pascal: 183; sh: 162; ansic: 106
file content (67 lines) | stat: -rw-r--r-- 2,154 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
From: =?utf-8?q?=C3=89tienne_Mollier?= <emollier@debian.org>
Date: Sat, 24 Jun 2023 21:49:59 +0200
Subject: remove use of sphinx gallery

Forwarded: not-needed
Last-Update: 2023-06-24

The sphinx gallery triggers run of example code which relies from line one
on Internet access to operate properly, which is a policy violation for
compiling binary packages, and a problem in general when the remote resource
goes unavailable.
---
 doc/conf.py | 35 +----------------------------------
 1 file changed, 1 insertion(+), 34 deletions(-)

--- dipy.orig/doc/conf.py
+++ dipy/doc/conf.py
@@ -42,8 +42,6 @@
     "sphinx.ext.ifconfig",
     "math_dollar",  # has to go before numpydoc
     "numpydoc",
-    "prepare_gallery",
-    "sphinx_gallery.gen_gallery",
     "sphinxcontrib.bibtex",
     "github",
     "sphinx_design",
@@ -540,39 +538,8 @@
 # If false, no module index is generated.
 # latex_use_modindex = True
 
-
-# -- Options for sphinx gallery -------------------------------------------
-from docimage_scrap import ImageFileScraper
-from prepare_gallery import folder_explicit_order
-from sphinx_gallery.sorting import ExplicitOrder
-
-sc = ImageFileScraper()
-ordered_folders = [f"examples_revamped/{f}" for f in folder_explicit_order()]
-
-sphinx_gallery_conf = {
-    "doc_module": ("dipy",),
-    # path to your examples scripts
-    "examples_dirs": [
-        "examples_revamped",
-    ],
-    # path where to save gallery generated examples
-    "gallery_dirs": [
-        "examples_built",
-    ],
-    "subsection_order": ExplicitOrder(ordered_folders),
-    "image_scrapers": (sc),
-    "backreferences_dir": "examples_built",
-    "reference_url": {
-        "dipy": None,
-    },
-    "abort_on_example_error": False,
-    "filename_pattern": re.escape(os.sep),
-    "default_thumb_file": "_static/images/logos/dipy_full_logo.png",
-    #  'pypandoc': {'extra_args': ['--mathjax',]},
-}
-
 # Example configuration for intersphinx: refer to the Python standard library.
-intersphinx_mapping = {"python": ("https://docs.python.org/3/", None)}
+intersphinx_mapping = {"python": ("/usr/share/doc/python3/html/", None)}
 
 
 def setup(app):