gnu: python: Use /nix/.../sh in popen2 module

* gnu/packages/python.scm (python-2): patch Lib/popen2.py to use /nix/.../sh.
master
Eric Bavier 2014-04-03 15:47:09 -05:00
parent 6e407e44a2
commit bb184d9884
1 changed files with 7 additions and 3 deletions

View File

@ -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