~ruther/guix-local

bb184d9884891ad190f2ebc4ffb71d6f361ab488 — Eric Bavier 12 years ago 6e407e4
gnu: python: Use /nix/.../sh in popen2 module

* gnu/packages/python.scm (python-2): patch Lib/popen2.py to use /nix/.../sh.
1 files changed, 7 insertions(+), 3 deletions(-)

M gnu/packages/python.scm
M gnu/packages/python.scm => gnu/packages/python.scm +7 -3
@@ 142,9 142,13 @@
         (alist-cons-before
          'configure 'patch-lib-shells
          (lambda _
            (substitute* '("Lib/subprocess.py"
                           "Lib/distutils/tests/test_spawn.py"
                           "Lib/test/test_subprocess.py")
            ;; Filter for existing files, since some may not exist in all
            ;; versions of python that are built with this recipe.
            (substitute* (filter file-exists?
                                 '("Lib/subprocess.py"
                                   "Lib/popen2.py"
                                   "Lib/distutils/tests/test_spawn.py"
                                   "Lib/test/test_subprocess.py"))
              (("/bin/sh") (which "sh"))))
          (alist-cons-before
           'check 'pre-check