gnu: python-numpy: Fix buidling on powerpc64le-linux.

Reported by mrvdb- on IRC.

* gnu/packages/python-xyz.scm (python-numpy)[arguments]: Adjust custom
'fix-executable-paths phase to substitute occurrences of '/bin/true'.
This commit is contained in:
Efraim Flashner 2022-07-15 15:31:41 +03:00
parent 8bfc8ffb82
commit 57629484b0
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -5562,7 +5562,10 @@ (define-public python-numpy
;; instead of /bin/sh.
(substitute* "numpy/distutils/exec_command.py"
(("'/bin/sh'")
(format #f "~s" (search-input-file inputs "bin/bash"))))))
(format #f "~s" (search-input-file inputs "bin/bash"))))
;; Don't try to call '/bin/true' specifically.
(substitute* "numpy/core/tests/test_cpu_features.py"
(("/bin/true") (search-input-file inputs "bin/true")))))
(replace 'check
(lambda* (#:key tests? outputs inputs #:allow-other-keys)
(when tests?