guix-commits
[Top][All Lists]
Advanced

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

branch master updated: gnu: python-matplotlib: Don't hardcode python ver


From: guix-commits
Subject: branch master updated: gnu: python-matplotlib: Don't hardcode python version.
Date: Mon, 24 May 2021 10:29:02 -0400

This is an automated email from the git hooks/post-receive script.

efraim pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 4ea6161  gnu: python-matplotlib: Don't hardcode python version.
4ea6161 is described below

commit 4ea6161046e664470b036f4692ea115e33ef6003
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon May 24 16:13:35 2021 +0300

    gnu: python-matplotlib: Don't hardcode python version.
    
    * gnu/packages/python-xyz.scm (python-matplotlib)[arguments]: In custom
    'install-jquery-ui phase programmatically get the version of python.
---
 gnu/packages/python-xyz.scm | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 954536b..25f986e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -5563,8 +5563,11 @@ convert between colorspaces like sRGB, XYZ, CIEL*a*b*, 
CIECAM02, CAM02-UCS, etc.
              #t))
          (add-before 'install 'install-jquery-ui
            (lambda* (#:key outputs inputs #:allow-other-keys)
-             (let ((dir (string-append (assoc-ref outputs "out")
-                                       
"/lib/python3.7/site-packages/matplotlib/backends/web_backend/")))
+             (let* ((python-version (python-version
+                                      (assoc-ref inputs "python")))
+                    (dir (string-append (assoc-ref outputs "out")
+                                       "/lib/python" python-version 
"/site-packages"
+                                       "/matplotlib/backends/web_backend/")))
                (mkdir-p dir)
                (invoke "unzip"
                        (assoc-ref inputs "jquery-ui")



reply via email to

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