dev-python/matplotlib: bump to 2.2.4

Closes: https://bugs.gentoo.org/684798
Closes: https://bugs.gentoo.org/656262
Signed-off-by: Virgil Dupras <vdupras@gentoo.org>
Package-Manager: Portage-2.3.62, Repoman-2.3.11
This commit is contained in:
Virgil Dupras
2019-05-02 11:10:35 -04:00
parent a1ba86259f
commit 3017cf5138
4 changed files with 295 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
diff --git a/doc/conf.py b/doc/conf.py
index 017ce210e..5a397082b 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -170,10 +170,10 @@ source_encoding = "utf-8"
master_doc = 'contents'
# General substitutions.
-from matplotlib.compat.subprocess import check_output
-SHA = check_output(['git', 'describe', '--dirty']).decode('utf-8').strip()
+#from matplotlib.compat.subprocess import check_output
+#SHA = check_output(['git', 'describe', '--dirty']).decode('utf-8').strip()
-html_context = {'sha': SHA}
+#html_context = {'sha': SHA}
project = 'Matplotlib'
copyright = ('2002 - 2012 John Hunter, Darren Dale, Eric Firing, '

View File

@@ -0,0 +1,18 @@
diff --git a/setup.py b/setup.py
index 41037e95d..6a438fa99 100644
--- a/setup.py
+++ b/setup.py
@@ -178,9 +178,10 @@ class sdist_with_jquery(_orgin_sdist):
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/"))
-
+ # Avoid downloading jquery ui during emerge: we already have it in
+ # pypi's tarball. use this!
+ name = "matplotlib/backends/web_backend/jquery-ui-1.12.1"
+ os.rename(os.path.join('lib', name), os.path.join(self.install_dir, name))
class develop_with_jquery(DevelopCommand):
def run(self):