[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
48/85: gnu: python: Support native build on the Hurd.
From: |
guix-commits |
Subject: |
48/85: gnu: python: Support native build on the Hurd. |
Date: |
Thu, 15 Jun 2023 02:32:41 -0400 (EDT) |
janneke pushed a commit to branch hurd-team
in repository guix.
commit f9cc82379d50f2fb21e6b71a8d2446b117b03443
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 "test_concurrent_futures", "test_venv",
"test_multiprocessing_forkserver", "test_multiprocessing_spawn",
"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_sqlite, and "test_regrtest" 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 bfe8a68352..5b27a0b4d4 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -56,7 +56,7 @@
;;; Copyright © 2018 Luther Thompson <lutheroto@gmail.com>
;;; Copyright © 2018 Vagrant Cascadian <vagrant@debian.org>
;;; Copyright © 2019 Tanguy Le Carrour <tanguy@bioneland.org>
-;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
+;;; Copyright © 2020, 2023 Janneke Nieuwenhuizen <janneke@gnu.org>
;;; Copyright © 2020, 2021 Greg Hogan <code@greghogan.com>
;;; Copyright © 2022 Philip McGrath <philip@philipmcgrath.com>
;;; Copyright © 2022 jgart <jgart@dismail.de>
@@ -488,12 +488,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 (hurd-system?)
- `((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 _
- 85/85: DRAFT system: examples: Add devel-hurd.tmpl., (continued)
- 85/85: DRAFT system: examples: Add devel-hurd.tmpl., guix-commits, 2023/06/15
- 12/85: gnu: hurd: Update to v0.9.git20230216., guix-commits, 2023/06/15
- 17/85: gnu: hurd-minimal: Include libshouldbeinlibc and libstore., guix-commits, 2023/06/15
- 15/85: gnu: hurd: Update libpciaccess to 0.17., guix-commits, 2023/06/15
- 14/85: gnu: Add libpciaccess-0.17., guix-commits, 2023/06/15
- 76/85: gnu: harfbuzz: Support build for the Hurd., guix-commits, 2023/06/15
- 18/85: gnu: parted: Support building for the Hurd., guix-commits, 2023/06/15
- 21/85: services: childhurd: Bump default qemu memory to 2048MB., guix-commits, 2023/06/15
- 36/85: Revert "gnu: libunistring: Fix make check for the Hurd.", guix-commits, 2023/06/15
- 32/85: gnu: commencement: gnumach-headers-boot0: Update to 1.8+git20221224., guix-commits, 2023/06/15
- 48/85: gnu: python: Support native build on the Hurd.,
guix-commits <=
- 81/85: system: hurd: Add procps to %base-packages/hurd., guix-commits, 2023/06/15
- 45/85: hurd: Support system init in /libexec/runsystem., guix-commits, 2023/06/15
- 03/85: gnu: gnumach-headers: Cross-build without relying on x86., guix-commits, 2023/06/15
- 04/85: gnu: hurd: Update supported systems., guix-commits, 2023/06/15
- 05/85: gnu: Add libc-for-target and glibc/hurd., guix-commits, 2023/06/15
- 20/85: hurd-boot: Setup pci-arbiter and rumpdisk translators., guix-commits, 2023/06/15
- 75/85: gnu: ghostscript: Fix build for the Hurd., guix-commits, 2023/06/15
- 39/85: gnu: grep: Update hanging and failing tests for the Hurd., guix-commits, 2023/06/15
- 50/85: gnu: elfutils: Skip failing tests for the Hurd., guix-commits, 2023/06/15
- 51/85: gnu: libbsd: Skip failing test for the Hurd., guix-commits, 2023/06/15