guix-commits
[Top][All Lists]
Advanced

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

60/97: gnu: python-statsmodels: Fix build


From: Hartmut Goebel
Subject: 60/97: gnu: python-statsmodels: Fix build
Date: Tue, 18 Oct 2016 20:13:20 +0000 (UTC)

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

commit 36e115b6734fe201cbf68723dcd351292f7ea793
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 711630e..fd5e569 100644
--- a/gnu/packages/statistics.scm
+++ b/gnu/packages/statistics.scm
@@ -1432,11 +1432,13 @@ building design matrices.")
                               line)))
             #t))
          (add-after 'install 'check
-          (lambda _
-            (with-directory-excursion "/tmp"
-              (zero? (system* "nosetests"
-                              "--stop"
-                              "-v" "statsmodels"))))))))
+           (lambda* (#:key outputs inputs #:allow-other-keys)
+             ;; Make installed package available for running the tests
+             (add-installed-pythonpath outputs inputs)
+             (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]