From 70318b46722d4c11375148636d3cbae1f01114f1 Mon Sep 17 00:00:00 2001 From: Cyril Roelandt Date: Fri, 14 Feb 2014 03:16:46 +0100 Subject: 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. --- gnu/packages/python.scm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'gnu/packages') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 056956e856..2c6992692a 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -139,7 +139,15 @@ (define-public python-2 (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) -- cgit v1.2.3