Skip to content
Snippets Groups Projects
Commit bb184d98 authored by Eric Bavier's avatar Eric Bavier
Browse files

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

* gnu/packages/python.scm (python-2): patch Lib/popen2.py to use /nix/.../sh.
parent 6e407e44
No related branches found
No related tags found
No related merge requests found
...@@ -142,9 +142,13 @@ (define-public python-2 ...@@ -142,9 +142,13 @@ (define-public python-2
(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
"Lib/distutils/tests/test_spawn.py" ;; versions of python that are built with this recipe.
"Lib/test/test_subprocess.py") (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")))) (("/bin/sh") (which "sh"))))
(alist-cons-before (alist-cons-before
'check 'pre-check 'check 'pre-check
......
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