[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
11/58: gnu: python: Support native build on the Hurd.
From: |
guix-commits |
Subject: |
11/58: gnu: python: Support native build on the Hurd. |
Date: |
Wed, 19 Jul 2023 03:00:45 -0400 (EDT) |
janneke pushed a commit to branch hurd-team
in repository guix.
commit eca46d7738f2fd1c7473ae2da976e72c6307e0f0
Author: Janneke Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Mon Jun 5 18:57:27 2023 +0200
gnu: python: Support native build on the Hurd.
Running "test_concurrent_futures" and "test_venv" freeze the Hurd. Tests
"test_multiprocessing_forkserver" and "test_multiprocessing_spawn" run over
10mins. Debian simply skips all tests on the Hurd.
* gnu/packages/python.scm (python-3.10)[arguments]: When building for the
Hurd, add hanging and failing to #:make-flags's --exclude flag. Also, add
'disable-multi-processing' phase to avoid compileall.py hang during install.
---
gnu/packages/python.scm | 27 ++++++++++++++++++++++++---
1 file changed, 24 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 302f995b0f..51d5f598d7 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -457,7 +457,7 @@ data types.")
(format #f "TESTOPTS=-j~d" (parallel-job-count))
;; test_mmap fails on low-memory systems
" --exclude test_mmap test_socket"
- ,@(if (target-hurd?)
+ ,@(if (system-hurd?)
'(" test_posix" ;multiple errors
" test_time"
" test_pty"
@@ -487,12 +487,33 @@ data types.")
" test_open_unix_connection"
" test_open_unix_connection_error"
" test_read_pty_output"
- " test_write_pty")
+ " test_write_pty"
+ " test_concurrent_futures" ;freeze
+ " test_venv" ;freeze
+ " test_multiprocessing_forkserver" ;runs over 10min
+ " test_multiprocessing_spawn" ;runs over 10min
+ " test_builtin"
+ " test_capi"
+ " test_dbm_ndbm"
+ " test_exceptions"
+ " test_faulthandler"
+ " test_getopt"
+ " test_importlib"
+ " test_json"
+ " test_multiprocessing_fork"
+ " test_multiprocessing_main_handling"
+ " test_pdb "
+ " test_regrtest"
+ " test_sqlite")
'()))))
((#:phases phases)
`(modify-phases ,phases
,@(if (system-hurd?)
- `((delete 'patch-regen-for-hurd)) ;regen was removed after
3.5.9
+ `((delete 'patch-regen-for-hurd) ;regen was removed after
3.5.9
+ (add-after 'unpack 'disable-multi-processing
+ (lambda _
+ (substitute* "Makefile.pre.in"
+ (("-j0") "-j1")))))
'())
(add-after 'unpack 'remove-windows-binaries
(lambda _
- 24/58: gnu: libpaper: Disable tests for the Hurd., (continued)
- 24/58: gnu: libpaper: Disable tests for the Hurd., guix-commits, 2023/07/19
- 27/58: gnu: tcsh: Skip substitution tests on the Hurd., guix-commits, 2023/07/19
- 20/58: gnu: git: Skip failing test on the Hurd., guix-commits, 2023/07/19
- 32/58: gnu: doxygen: Fix build for the Hurd., guix-commits, 2023/07/19
- 34/58: gnu: guile-git: Skip http proxy test on the Hurd., guix-commits, 2023/07/19
- 02/58: gnu: guile: Skip hanging and failing pipe tests on the Hurd., guix-commits, 2023/07/19
- 56/58: DRAFT system: examples: Add devel-hurd.tmpl., guix-commits, 2023/07/19
- 48/58: system: hurd: Add procps to %base-packages/hurd., guix-commits, 2023/07/19
- 55/58: DRAFT hurd-boot: Support second boot., guix-commits, 2023/07/19
- 17/58: gnu: libgcrypt: Skip hanging benchmark tests on the Hurd., guix-commits, 2023/07/19
- 11/58: gnu: python: Support native build on the Hurd.,
guix-commits <=
- 25/58: gnu: openssl-1.1: Fix shared build for the Hurd., guix-commits, 2023/07/19
- 31/58: gnu: cmake-minimal: Skip tests on the Hurd., guix-commits, 2023/07/19
- 36/58: gnu: harfbuzz: Support build for the Hurd., guix-commits, 2023/07/19
- 37/58: gnu: pango: Support build for the Hurd., guix-commits, 2023/07/19
- 43/58: gnu: hurd: Support native build on the Hurd., guix-commits, 2023/07/19
- 44/58: gnu: guix: Disable some test on 32bit., guix-commits, 2023/07/19
- 39/58: gnu: po4a: Skip failing test on the Hurd., guix-commits, 2023/07/19
- 50/58: build: Build gnu/packages/*.go in five steps., guix-commits, 2023/07/19
- 47/58: hurd-boot: Support system init: Create essential device nodes., guix-commits, 2023/07/19
- 46/58: hurd: Support system init in /libexec/runsystem., guix-commits, 2023/07/19