mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-19 05:57:04 +01:00
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:
parent
e7a90f28cb
commit
baab9eef27
1 changed files with 12 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue