Blob Blame Raw
diff -ur matplotlib-2.2.4.orig/lib/matplotlib/backends/web_backend/all_figures.html matplotlib-2.2.4/lib/matplotlib/backends/web_backend/all_figures.html
--- matplotlib-2.2.4.orig/lib/matplotlib/backends/web_backend/all_figures.html	2019-02-26 03:07:47.000000000 +0100
+++ matplotlib-2.2.4/lib/matplotlib/backends/web_backend/all_figures.html	2019-03-13 10:43:07.962773415 +0100
@@ -3,9 +3,9 @@
     <link rel="stylesheet" href="{{ prefix }}/_static/css/page.css" type="text/css">
     <link rel="stylesheet" href="{{ prefix }}/_static/css/boilerplate.css" type="text/css" />
     <link rel="stylesheet" href="{{ prefix }}/_static/css/fbm.css" type="text/css" />
-    <link rel="stylesheet" href="{{ prefix }}/_static/jquery-ui-1.12.1/jquery-ui.min.css" >
-    <script src="{{ prefix }}/_static/jquery-ui-1.12.1/external/jquery/jquery.js"></script>
-    <script src="{{ prefix }}/_static/jquery-ui-1.12.1/jquery-ui.min.js"></script>
+    <link rel="stylesheet" href="/usr/share/javascript/jquery_ui/jquery-ui.min.css" >
+    <script src="/usr/share/javascript/jquery/latest/jquery.min.js"></script>
+    <script src="/usr/share/javascript/jquery_ui/jquery-ui.min.js"></script>
     <script src="{{ prefix }}/_static/js/mpl_tornado.js"></script>
     <script src="{{ prefix }}/js/mpl.js"></script>
 
diff -ur matplotlib-2.2.4.orig/lib/matplotlib/backends/web_backend/single_figure.html matplotlib-2.2.4/lib/matplotlib/backends/web_backend/single_figure.html
--- matplotlib-2.2.4.orig/lib/matplotlib/backends/web_backend/single_figure.html	2019-02-26 03:07:47.000000000 +0100
+++ matplotlib-2.2.4/lib/matplotlib/backends/web_backend/single_figure.html	2019-03-13 10:43:07.976773268 +0100
@@ -3,9 +3,9 @@
     <link rel="stylesheet" href="{{ prefix }}/_static/css/page.css" type="text/css">
     <link rel="stylesheet" href="{{ prefix }}/_static/css/boilerplate.css" type="text/css" />
     <link rel="stylesheet" href="{{ prefix }}/_static/css/fbm.css" type="text/css" />
-    <link rel="stylesheet" href="{{ prefix }}/_static/jquery-ui-1.12.1/jquery-ui.min.css" >
-    <script src="{{ prefix }}/_static/jquery-ui-1.12.1/external/jquery/jquery.js"></script>
-    <script src="{{ prefix }}/_static/jquery-ui-1.12.1/jquery-ui.min.js"></script>
+    <link rel="stylesheet" href="/usr/share/javascript/jquery_ui/jquery-ui.min.css" >
+    <script src="/usr/share/javascript/jquery/latest/jquery.min.js"></script>
+    <script src="/usr/share/javascript/jquery_ui/jquery-ui.min.js"></script>
     <script src="{{ prefix }}/_static/js/mpl_tornado.js"></script>
     <script src="{{ prefix }}/js/mpl.js"></script>
     <script>
diff -ur matplotlib-2.2.4.orig/setup.py matplotlib-2.2.4/setup.py
--- matplotlib-2.2.4.orig/setup.py	2019-02-26 03:07:47.000000000 +0100
+++ matplotlib-2.2.4/setup.py	2019-03-13 10:48:19.709490969 +0100
@@ -35,8 +35,6 @@
 
 from setuptools import setup
 from setuptools.command.build_ext import build_ext as BuildExtCommand
-from setuptools.command.develop import develop as DevelopCommand
-from setuptools.command.install_lib import install_lib as InstallLibCommand
 from setuptools.command.test import test as TestCommand
 
 # The setuptools version of sdist adds a setup.cfg file to the tree.
@@ -146,53 +144,6 @@
 cmdclass['build_ext'] = BuildExtraLibraries
 
 
-def _download_jquery_to(dest):
-    # Note: When bumping the jquery-ui version, also update the versions in
-    # single_figure.html and all_figures.html.
-    url = "https://jqueryui.com/resources/download/jquery-ui-1.12.1.zip"
-    sha = 'f8233674366ab36b2c34c577ec77a3d70cac75d2e387d8587f3836345c0f624d'
-    if not os.path.exists(os.path.join(dest, "jquery-ui-1.12.1")):
-        _makedirs(dest, exist_ok=True)
-        try:
-            buff = download_or_cache(url, sha)
-        except Exception:
-            raise IOError("Failed to download jquery-ui.  Please download " +
-                          "{url} and extract it to {dest}.".format(
-                              url=url, dest=dest))
-        with ZipFile(buff) as zf:
-            zf.extractall(dest)
-
-
-# Relying on versioneer's implementation detail.
-_orgin_sdist = cmdclass['sdist']
-
-
-class sdist_with_jquery(_orgin_sdist):
-    def make_release_tree(self, base_dir, files):
-        _orgin_sdist.make_release_tree(self, base_dir, files)
-        _download_jquery_to(
-            os.path.join(base_dir, "lib/matplotlib/backends/web_backend/"))
-
-
-# Affects install and bdist_wheel.
-class install_lib_with_jquery(InstallLibCommand):
-    def run(self):
-        InstallLibCommand.run(self)
-        _download_jquery_to(
-            os.path.join(self.install_dir, "matplotlib/backends/web_backend/"))
-
-
-class develop_with_jquery(DevelopCommand):
-    def run(self):
-        DevelopCommand.run(self)
-        _download_jquery_to("lib/matplotlib/backends/web_backend/")
-
-
-cmdclass['sdist'] = sdist_with_jquery
-cmdclass['install_lib'] = install_lib_with_jquery
-cmdclass['develop'] = develop_with_jquery
-
-
 # One doesn't normally see `if __name__ == '__main__'` blocks in a setup.py,
 # however, this is needed on Windows to avoid creating infinite subprocesses
 # when using multiprocessing.