From bb184d9884891ad190f2ebc4ffb71d6f361ab488 Mon Sep 17 00:00:00 2001 From: Eric Bavier Date: Thu, 3 Apr 2014 15:47:09 -0500 Subject: gnu: python: Use /nix/.../sh in popen2 module * gnu/packages/python.scm (python-2): patch Lib/popen2.py to use /nix/.../sh. --- gnu/packages/python.scm | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 6b4d450599..bc56d7a2da 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -142,9 +142,13 @@ (define-public python-2 (alist-cons-before 'configure 'patch-lib-shells (lambda _ - (substitute* '("Lib/subprocess.py" - "Lib/distutils/tests/test_spawn.py" - "Lib/test/test_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/test/test_subprocess.py")) (("/bin/sh") (which "sh")))) (alist-cons-before 'check 'pre-check -- cgit v1.2.3