gnu: python: Use /nix/.../sh in popen2 module
* gnu/packages/python.scm (python-2): patch Lib/popen2.py to use /nix/.../sh.
This commit is contained in:
parent
6e407e44a2
commit
bb184d9884
|
@ -142,9 +142,13 @@
|
||||||
(alist-cons-before
|
(alist-cons-before
|
||||||
'configure 'patch-lib-shells
|
'configure 'patch-lib-shells
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* '("Lib/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/distutils/tests/test_spawn.py"
|
||||||
"Lib/test/test_subprocess.py")
|
"Lib/test/test_subprocess.py"))
|
||||||
(("/bin/sh") (which "sh"))))
|
(("/bin/sh") (which "sh"))))
|
||||||
(alist-cons-before
|
(alist-cons-before
|
||||||
'check 'pre-check
|
'check 'pre-check
|
||||||
|
|
Loading…
Reference in New Issue