guix-commits
[Top][All Lists]
Advanced

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

01/02: gnu: python-2.7: Include /lib/python.../test/support.


From: guix-commits
Subject: 01/02: gnu: python-2.7: Include /lib/python.../test/support.
Date: Mon, 21 Jan 2019 14:52:08 -0500 (EST)

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

commit d453b0e11d3f001a8160a7d126fdbf40e45d5042
Author: Christopher Baines <address@hidden>
Date:   Thu Jan 3 20:47:39 2019 +0000

    gnu: python-2.7: Include /lib/python.../test/support.
    
    Don't remove the support directory from the /lib/python.../test/ directory, 
as
    this is used from the test_support module.
    
      /gnu/store/...-python2-2.7.15/lib/python2.7/test/test_support.py:2: in 
<module>
          import test.support
      E   ImportError: No module named support
    
    * gnu/packages/python.scm (python-2.7)[arguments]: Change the 'remove-tests
    phase to not remove the support directory.
---
 gnu/packages/python.scm | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index c0ed19e..d13d7db 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -271,12 +271,9 @@
                                  (scandir testdir
                                           (match-lambda
                                             ((or "." "..") #f)
+                                            ("support" #f)
                                             (file
                                              (not
-                                              ;; FIXME: Add the 'support' 
directory
-                                              ;; in the next rebuild cycle, 
since it
-                                              ;; moved in 2.7.14.  See also
-                                              ;; python2-futures below.
                                               (string-prefix? "test_support."
                                                               file))))))
                        (call-with-output-file "__init__.py" (const #t))



reply via email to

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