gnu: python-numpy: Update to 1.13.1.

* gnu/packages/python.scm (python-numpy, python2-numpy): Update to 1.13.1.
[source]: Download the zip release from pypi instead of a git snapshot.
[native-inputs]: Add unzip.
[arguments]: Set SHELL environment variable.

Co-authored by Leo Famulari <leo@famulari.name>
This commit is contained in:
Thomas Danckaert 2017-09-26 16:26:08 +02:00 committed by Thomas Danckaert
parent 18a26f1c13
commit 025b196d9b
No known key found for this signature in database
GPG Key ID: 5C3B064C724A5726
1 changed files with 7 additions and 6 deletions

View File

@ -3720,22 +3720,21 @@ between language specification and implementation aspects.")
(define-public python-numpy (define-public python-numpy
(package (package
(name "python-numpy") (name "python-numpy")
(version "1.12.0") (version "1.13.1")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (string-append (uri (pypi-uri "numpy" version ".zip"))
"https://github.com/numpy/numpy/archive/v" version ".tar.gz"))
(file-name (string-append name "-" version ".tar.gz"))
(sha256 (sha256
(base32 (base32
"025d4j4aakcp8w5i5diqh812cbbjgac7jszx1j56ivrbi1i8vv7d")))) "1fsgkhh1vdkhmlz8vmdgxnj9n9yaanckxxzz9s0b4p08fqvjic69"))))
(build-system python-build-system) (build-system python-build-system)
(inputs (inputs
`(("openblas" ,openblas) `(("openblas" ,openblas)
("lapack" ,lapack))) ("lapack" ,lapack)))
(native-inputs (native-inputs
`(("python-cython" ,python-cython) `(("unzip" ,unzip)
("python-cython" ,python-cython)
("python-nose" ,python-nose) ("python-nose" ,python-nose)
("gfortran" ,gfortran))) ("gfortran" ,gfortran)))
(arguments (arguments
@ -3743,6 +3742,8 @@ between language specification and implementation aspects.")
(modify-phases %standard-phases (modify-phases %standard-phases
(add-before 'build 'set-environment-variables (add-before 'build 'set-environment-variables
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
;; numpy's distutils uses $SHELL to run external commands.
(setenv "SHELL" "bash")
(call-with-output-file "site.cfg" (call-with-output-file "site.cfg"
(lambda (port) (lambda (port)
(format port (format port