Skip to content
Snippets Groups Projects
Commit 70318b46 authored by Cyril Roelandt's avatar Cyril Roelandt
Browse files

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.
parent b10ab723
No related branches found
No related tags found
No related merge requests found
...@@ -139,7 +139,15 @@ (define-public python-2 ...@@ -139,7 +139,15 @@ (define-public python-2
(with-directory-excursion out (with-directory-excursion out
(for-each (cut augment-rpath <> lib) (for-each (cut augment-rpath <> lib)
(find-files "bin" ".*"))))) (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 (inputs
`(("bzip2" ,bzip2) `(("bzip2" ,bzip2)
("gdbm" ,gdbm) ("gdbm" ,gdbm)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment