gnu: python2-cython: Exclude parallel tests on i686 systems.

* gnu/packages/python-xyz.scm (python2-cython)[arguments]: When building on
i686-linux, override the 'check' phase.
This commit is contained in:
Marius Bakke 2020-03-19 08:29:06 +01:00
parent e7a90f28cb
commit baab9eef27
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -3685,6 +3685,18 @@ (define-public python2-cython
(substitute-keyword-arguments (package-arguments base)
((#:phases phases)
`(modify-phases ,phases
;; XXX: On i686-linux, running the parallel tests fails on many-core
;; systems, see <https://github.com/cython/cython/issues/2807>.
;; TODO: Move this logic to the regular check phase in a future
;; rebuild cycle.
,@(if (string-prefix? "i686" (%current-system))
'((replace 'check
(lambda _
(setenv "CFLAGS" "-O0")
(invoke "python" "runtests.py" "-vv"
"-j" (number->string (parallel-job-count))
"-x" "run.parallel"))))
'())
(add-before 'check 'adjust-test_embed
(lambda _
(substitute* "runtests.py"