gnu: Python: use /nix/.../sh instead of /bin/sh in the subprocess module

* gnu/packages/python.scm (python-2): patch Lib/subprocess.py to use
  /nix/.../sh.
master
Cyril Roelandt 2014-02-14 03:16:46 +01:00
parent b10ab7230f
commit 70318b4672
1 changed files with 9 additions and 1 deletions

View File

@ -139,7 +139,15 @@
(with-directory-excursion out
(for-each (cut augment-rpath <> lib)
(find-files "bin" ".*")))))
%standard-phases)))
(alist-replace
'configure
(lambda* (#:key outputs #:allow-other-keys #:rest args)
(let ((configure (assoc-ref %standard-phases 'configure)))
(substitute* "Lib/subprocess.py"
(("args = \\[\"/bin/sh")
(string-append "args = [\"" (which "sh"))))
(apply configure args)))
%standard-phases))))
(inputs
`(("bzip2" ,bzip2)
("gdbm" ,gdbm)