guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

02/04: gnu: python2-matplotlib: Fix jquery-ui install path.


From: guix-commits
Subject: 02/04: gnu: python2-matplotlib: Fix jquery-ui install path.
Date: Thu, 19 Sep 2019 06:46:47 -0400 (EDT)

efraim pushed a commit to branch master
in repository guix.

commit 66a3c2db9b1d344145ded88fd5aeec4cff77137f
Author: Efraim Flashner <address@hidden>
Date:   Thu Sep 19 12:29:49 2019 +0300

    gnu: python2-matplotlib: Fix jquery-ui install path.
    
    * gnu/packages/python-xyz.scm (python2-matplotlib)[arguments]: Override
    custom 'install-jquery-ui phase to install in the appropriate directory.
---
 gnu/packages/python-xyz.scm | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 66f7e17..71adf82 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -3941,6 +3941,16 @@ toolkits.")
        (substitute-keyword-arguments (package-arguments matplotlib)
          ((#:phases phases)
           `(modify-phases ,phases
+             (replace 'install-jquery-ui
+               (lambda* (#:key outputs inputs #:allow-other-keys)
+                 (let ((dir (string-append (assoc-ref outputs "out")
+                                           "/lib/python2.7/site-packages/"
+                                           
"matplotlib/backends/web_backend/")))
+                   (mkdir-p dir)
+                   (invoke "unzip"
+                           (assoc-ref inputs "jquery-ui")
+                           "-d" dir))
+                 #t))
              (delete 'check))))) ; These tests weren't run the the past.
       ;; Make sure to use special packages for Python 2 instead
       ;; of those automatically rewritten by package-with-python2.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]