1Disable automatic downloading of components!
2
3Upstream-Status: Inappropriate [disable feature]
4
5Signed-off-by: Mark Hatle <mark.hatle@xilinx.com>
6
7--- a/setup.py
8+++ b/setup.py
9@@ -317,7 +317,6 @@ setup(  # Finally, pass this all along t
10         "certifi>=2020.06.20",
11         "numpy>=1.17",
12         "setuptools_scm>=4",
13-        "setuptools_scm_git_archive",
14     ],
15     install_requires=[
16         "cycler>=0.10",
17--- a/setupext.py
18+++ b/setupext.py
19@@ -64,40 +64,7 @@ def get_from_cache_or_download(url, sha)
20     BytesIO
21         The file loaded into memory.
22     """
23-    cache_dir = _get_xdg_cache_dir()
24-
25-    if cache_dir is not None:  # Try to read from cache.
26-        try:
27-            data = (cache_dir / sha).read_bytes()
28-        except IOError:
29-            pass
30-        else:
31-            if _get_hash(data) == sha:
32-                return BytesIO(data)
33-
34-    # jQueryUI's website blocks direct downloads from urllib.request's
35-    # default User-Agent, but not (for example) wget; so I don't feel too
36-    # bad passing in an empty User-Agent.
37-    with urllib.request.urlopen(
38-            urllib.request.Request(url, headers={"User-Agent": ""}),
39-            context=_get_ssl_context()) as req:
40-        data = req.read()
41-
42-    file_sha = _get_hash(data)
43-    if file_sha != sha:
44-        raise Exception(
45-            f"The downloaded file does not match the expected sha.  {url} was "
46-            f"expected to have {sha} but it had {file_sha}")
47-
48-    if cache_dir is not None:  # Try to cache the downloaded file.
49-        try:
50-            cache_dir.mkdir(parents=True, exist_ok=True)
51-            with open(cache_dir / sha, "xb") as fout:
52-                fout.write(data)
53-        except IOError:
54-            pass
55-
56-    return BytesIO(data)
57+    raise IOError(f"Automatic downloading is disabled.")
58
59
60 def get_and_extract_tarball(urls, sha, dirname):
61