From 4ea6161046e664470b036f4692ea115e33ef6003 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 24 May 2021 16:13:35 +0300 Subject: 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(-) (limited to 'gnu/packages/python-xyz.scm') diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 954536b283..25f986e9b6 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") -- cgit v1.2.3