diff options
Diffstat (limited to 'gnu/packages/python.scm')
-rw-r--r-- | gnu/packages/python.scm | 10 |
1 files 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 @@ (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 |