gnu: python-scipy: Update to 0.18.1.
* gnu/packages/python.scm (python-scipy): Update to 0.18.1. [source]: Use github instead of sourceforge. [native-inputs]: Add python-cython. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
This commit is contained in:
parent
b320f7bf06
commit
350932536a
|
@ -4079,16 +4079,16 @@ functions.")
|
||||||
(define-public python-scipy
|
(define-public python-scipy
|
||||||
(package
|
(package
|
||||||
(name "python-scipy")
|
(name "python-scipy")
|
||||||
(version "0.16.0")
|
(version "0.18.1")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
; http://downloads.sourceforge.net/project/scipy/scipy/0.16.1/scipy-0.16.1.tar.gz
|
(uri (string-append "https://github.com/scipy/scipy/archive/v"
|
||||||
(uri (string-append "mirror://sourceforge/scipy/scipy/" version
|
version ".tar.gz"))
|
||||||
"/scipy-" version ".tar.xz"))
|
(file-name (string-append name "-" version ".tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0wa0a4skpda3gx7lb12yn19nhbairlyxrvda2lz2bcawk3x5qzz2"))))
|
"17slsrfawjp7if6qrlx03zhgp05350ginxx8ddpw9zqx43x905sn"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
`(("python-numpy" ,python-numpy)
|
`(("python-numpy" ,python-numpy)
|
||||||
|
@ -4098,21 +4098,16 @@ functions.")
|
||||||
`(("lapack" ,lapack)
|
`(("lapack" ,lapack)
|
||||||
("openblas" ,openblas)))
|
("openblas" ,openblas)))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("python-nose" ,python-nose)
|
`(("python-cython" ,python-cython)
|
||||||
("python-sphinx" ,python-sphinx-1.2.3)
|
("python-nose" ,python-nose)
|
||||||
|
("python-sphinx" ,python-sphinx)
|
||||||
("python-numpydoc" ,python-numpydoc)
|
("python-numpydoc" ,python-numpydoc)
|
||||||
("gfortran" ,gfortran)
|
("gfortran" ,gfortran)
|
||||||
("texlive" ,texlive)
|
|
||||||
("perl" ,perl)))
|
("perl" ,perl)))
|
||||||
(outputs '("out" "doc"))
|
(outputs '("out" "doc"))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
`(#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'fix-tests
|
|
||||||
(lambda _
|
|
||||||
(substitute* "scipy/integrate/tests/test_quadpack.py"
|
|
||||||
(("libm.so") "libm.so.6"))
|
|
||||||
#t))
|
|
||||||
(add-before 'build 'configure-openblas
|
(add-before 'build 'configure-openblas
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(call-with-output-file "site.cfg"
|
(call-with-output-file "site.cfg"
|
||||||
|
@ -4132,7 +4127,6 @@ atlas_libs = openblas
|
||||||
(assoc-ref inputs "openblas")
|
(assoc-ref inputs "openblas")
|
||||||
(assoc-ref inputs "openblas"))))
|
(assoc-ref inputs "openblas"))))
|
||||||
#t))
|
#t))
|
||||||
(delete 'check)
|
|
||||||
(add-after 'install 'install-doc
|
(add-after 'install 'install-doc
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
(let* ((data (string-append (assoc-ref outputs "doc") "/share"))
|
(let* ((data (string-append (assoc-ref outputs "doc") "/share"))
|
||||||
|
@ -4149,23 +4143,28 @@ atlas_libs = openblas
|
||||||
"pngmath_use_preview = False"))
|
"pngmath_use_preview = False"))
|
||||||
(mkdir-p html)
|
(mkdir-p html)
|
||||||
(system* "make" "html" pyver)
|
(system* "make" "html" pyver)
|
||||||
(system* "make" "latex" "PAPER=a4" pyver)
|
|
||||||
(system* "make" "-C" "build/latex" "all-pdf" "PAPER=a4" pyver)
|
|
||||||
(copy-file "build/latex/scipy-ref.pdf"
|
|
||||||
(string-append doc "/scipy-ref.pdf"))
|
|
||||||
(with-directory-excursion "build/html"
|
(with-directory-excursion "build/html"
|
||||||
(for-each (lambda (file)
|
(for-each (lambda (file)
|
||||||
(let* ((dir (dirname file))
|
(let* ((dir (dirname file))
|
||||||
(tgt-dir (string-append html "/" dir)))
|
(tgt-dir (string-append html "/" dir)))
|
||||||
(install-file file html)))
|
(install-file file html)))
|
||||||
(find-files "." ".*"))))
|
(find-files "." ".*")))))
|
||||||
#t)))
|
#t))
|
||||||
(add-after 'install-doc 'check
|
(add-after 'unpack 'fix-tests
|
||||||
(lambda _
|
(lambda _
|
||||||
|
(substitute* "scipy/integrate/tests/test_quadpack.py"
|
||||||
|
(("libm.so") "libm.so.6"))
|
||||||
|
#t))
|
||||||
;; Tests can only be run after the library has been installed and not
|
;; Tests can only be run after the library has been installed and not
|
||||||
;; within the source directory.
|
;; within the source directory.
|
||||||
|
(delete 'check)
|
||||||
|
(add-after 'install 'check
|
||||||
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
|
(add-installed-pythonpath inputs outputs)
|
||||||
(with-directory-excursion "/tmp"
|
(with-directory-excursion "/tmp"
|
||||||
(zero? (system* "python" "-c" "import scipy; scipy.test()"))))))))
|
(zero? (system* "python" "-c"
|
||||||
|
"import scipy; scipy.test('full')")))
|
||||||
|
#t)))))
|
||||||
(home-page "http://www.scipy.org/")
|
(home-page "http://www.scipy.org/")
|
||||||
(synopsis "The Scipy library provides efficient numerical routines")
|
(synopsis "The Scipy library provides efficient numerical routines")
|
||||||
(description "The SciPy library is one of the core packages that make up
|
(description "The SciPy library is one of the core packages that make up
|
||||||
|
@ -4175,15 +4174,8 @@ routines such as routines for numerical integration and optimization.")
|
||||||
(license license:bsd-3)))
|
(license license:bsd-3)))
|
||||||
|
|
||||||
(define-public python2-scipy
|
(define-public python2-scipy
|
||||||
(let ((scipy (package-with-python2
|
(package-with-python2
|
||||||
(strip-python2-variant python-scipy))))
|
(strip-python2-variant python-scipy)))
|
||||||
(package (inherit scipy)
|
|
||||||
;; Make sure to use special packages for Python 2 instead
|
|
||||||
;; of those automatically rewritten by package-with-python2.
|
|
||||||
(native-inputs
|
|
||||||
`(("python2-sphinx" ,python2-sphinx-1.2.3)
|
|
||||||
,@(fold alist-delete (package-native-inputs scipy)
|
|
||||||
'("python-sphinx")))))))
|
|
||||||
|
|
||||||
(define-public python-socksipy-branch
|
(define-public python-socksipy-branch
|
||||||
(package
|
(package
|
||||||
|
|
Loading…
Reference in New Issue