guix-commits
[Top][All Lists]
Advanced

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

58/104: gnu: python-statsmodels: Fix build


From: Hartmut Goebel
Subject: 58/104: gnu: python-statsmodels: Fix build
Date: Tue, 15 Nov 2016 21:37:04 +0000 (UTC)

htgoebel pushed a commit to branch python-build-system
in repository guix.

commit 25b2c47d753efd0761a4e16519dce38d828789f5
Author: Hartmut Goebel <address@hidden>
Date:   Sun Oct 16 18:40:58 2016 +0200

    gnu: python-statsmodels: Fix build
    
    * gnu/packages/statistics.scm (python-statsmodels): [check] set
      PYTHONPATH prior to running tests.
---
 gnu/packages/statistics.scm |   12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm
index cca08d2..3461799 100644
--- a/gnu/packages/statistics.scm
+++ b/gnu/packages/statistics.scm
@@ -1444,11 +1444,13 @@ building design matrices.")
                               line)))
             #t))
          (add-after 'install 'check
-          (lambda _
-            (with-directory-excursion "/tmp"
-              (zero? (system* "nosetests"
-                              "--stop"
-                              "-v" "statsmodels"))))))))
+           (lambda* (#:key inputs outputs #:allow-other-keys)
+             ;; Make installed package available for running the tests
+             (add-installed-pythonpath inputs outputs)
+             (with-directory-excursion "/tmp"
+               (zero? (system* "nosetests"
+                               "--stop"
+                               "-v" "statsmodels"))))))))
     (propagated-inputs
      `(("python-numpy" ,python-numpy)
        ("python-scipy" ,python-scipy)



reply via email to

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