gnu: python-testpath: Fix library location for python2 version.
* gnu/packages/python.scm (python-testpath)[arguments]: Install module in the proper "lib/pythonx.y" location for all Python versions. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>master
parent
2aa6d3aeeb
commit
b320f7bf06
|
@ -5183,20 +5183,26 @@ installing @code{kernelspec}s for use with Jupyter frontends.")
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:tests? #f ; this package does not even have a setup.py
|
`(#:tests? #f ; this package does not even have a setup.py
|
||||||
|
#:modules ((guix build python-build-system)
|
||||||
|
(guix build utils)
|
||||||
|
(srfi srfi-1))
|
||||||
|
#:imported-modules (,@%python-build-system-modules
|
||||||
|
(srfi srfi-1))
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(delete 'install)
|
(delete 'install)
|
||||||
(replace 'build
|
(replace 'build
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
(let ((dir (string-append
|
(let* ((version (last
|
||||||
(assoc-ref outputs "out")
|
(string-split (assoc-ref inputs "python") #\-)))
|
||||||
"/lib/python"
|
(x.y (string-join (take (string-split version #\.) 2)
|
||||||
(string-take (string-take-right
|
"."))
|
||||||
(assoc-ref inputs "python") 5) 3)
|
(dir (string-append
|
||||||
"/site-packages/testpath")))
|
(assoc-ref outputs "out")
|
||||||
(mkdir-p dir)
|
"/lib/python" x.y "/site-packages/testpath")))
|
||||||
(copy-recursively "testpath" dir))
|
(mkdir-p dir)
|
||||||
#t)))))
|
(copy-recursively "testpath" dir))
|
||||||
|
#t)))))
|
||||||
(home-page "https://github.com/takluyver/testpath")
|
(home-page "https://github.com/takluyver/testpath")
|
||||||
(synopsis "Test utilities for code working with files and commands")
|
(synopsis "Test utilities for code working with files and commands")
|
||||||
(description
|
(description
|
||||||
|
|
Reference in New Issue