guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/07: gnu: python-numpy: Update to 1.15.1.


From: Marius Bakke
Subject: 01/07: gnu: python-numpy: Update to 1.15.1.
Date: Mon, 27 Aug 2018 12:33:47 -0400 (EDT)

mbakke pushed a commit to branch core-updates
in repository guix.

commit d7c82e8e030c777750aec790ef7255cf5afcf3af
Author: Marius Bakke <address@hidden>
Date:   Mon Aug 27 16:05:11 2018 +0200

    gnu: python-numpy: Update to 1.15.1.
    
    * gnu/packages/python.scm (python-numpy): Update to 1.15.1.
    [native-inputs]: Replace PYTHON-NOSE with PYTHON-PYTEST.
    [arguments]: Set PATH before running tests.  Use INVOKE.
---
 gnu/packages/python.scm | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 244faa2..a761fcf 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -2807,7 +2807,7 @@ between language specification and implementation 
aspects.")
 (define-public python-numpy
   (package
     (name "python-numpy")
-    (version "1.14.5")
+    (version "1.15.1")
     (source
      (origin
        (method url-fetch)
@@ -2816,14 +2816,14 @@ between language specification and implementation 
aspects.")
              version "/numpy-" version ".tar.gz"))
        (sha256
         (base32
-         "0admjpkih63lm19zbbilq8ck4f6ny5kqi03dk3m6b2mnixsh4jhv"))))
+         "1yp75fkqk7abq3mrbqdf0pdmr2phkr2mnng0dbqqvvrmv7jwq71w"))))
     (build-system python-build-system)
     (inputs
      `(("openblas" ,openblas)
        ("lapack" ,lapack)))
     (native-inputs
      `(("python-cython" ,python-cython)
-       ("python-nose" ,python-nose)
+       ("python-pytest" ,python-pytest)
        ("gfortran" ,gfortran)))
     (arguments
      `(#:phases
@@ -2868,9 +2868,12 @@ include_dirs = ~a/include
            (lambda* (#:key outputs inputs #:allow-other-keys)
              ;; Make installed package available for running the tests
              (add-installed-pythonpath inputs outputs)
+             ;; Make sure "f2py" etc is found.
+             (setenv "PATH" (string-append (assoc-ref outputs "out") "/bin"
+                                           ":" (getenv "PATH")))
              (with-directory-excursion "/tmp"
-               (zero? (system* "python" "-c"
-                               "import numpy; numpy.test(verbose=2)"))))))))
+               (invoke "python" "-c"
+                       "import numpy; numpy.test(verbose=2)")))))))
     (home-page "http://www.numpy.org/";)
     (synopsis "Fundamental package for scientific computing with Python")
     (description "NumPy is the fundamental package for scientific computing



reply via email to

[Prev in Thread] Current Thread [Next in Thread]