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.
This commit is contained in:
parent
67ac4348d4
commit
4ea6161046
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user