[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/10: gnu: python-ipykernel: Remove dependency on (guix build syscalls)
From: |
guix-commits |
Subject: |
02/10: gnu: python-ipykernel: Remove dependency on (guix build syscalls). |
Date: |
Sun, 22 Oct 2023 09:38:19 -0400 (EDT) |
civodul pushed a commit to branch wip-syscall-update
in repository guix.
commit 57121aa0458c061c023a104ee5775897167ace8b
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Fri Oct 13 17:09:16 2023 +0200
gnu: python-ipykernel: Remove dependency on (guix build syscalls).
* gnu/packages/python-xyz.scm (python-ipykernel)[arguments]:
Remove #:imported-modules. Remove (guix build syscalls) from #:modules.
Rewrite ‘check’ phase to reap child processes from the build process.
[native-inputs]: Remove TINI.
---
gnu/packages/python-xyz.scm | 31 +++++++++++++------------------
1 file changed, 13 insertions(+), 18 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 29ac11df95..d094c6e451 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -10660,10 +10660,7 @@ installing @code{kernelspec}s for use with Jupyter
frontends.")
(build-system pyproject-build-system)
(arguments
(list
- #:imported-modules `(,@%pyproject-build-system-modules
- (guix build syscalls))
#:modules '((guix build pyproject-build-system)
- (guix build syscalls)
(guix build utils)
(ice-9 match))
#:phases
@@ -10682,20 +10679,19 @@ installing @code{kernelspec}s for use with Jupyter
frontends.")
(when tests?
(match (primitive-fork)
(0 ;child process
- (set-child-subreaper!)
- ;; XXX: Tini provides proper PID1-like signal handling that
- ;; reaps zombie processes, necessary for the
- ;; 'test_shutdown_subprocesses' test to pass.
-
- ;; TODO: Complete https://issues.guix.gnu.org/30948.
(setenv "HOME" "/tmp")
- (execlp "tini" "--" "pytest" "-vv"))
- (pid
- (match (waitpid pid)
- ((_ . status)
- (unless (zero? status)
- (error "`pytest' exited with status"
- status)))))))))
+ (execlp "pytest" "pytest" "-vv"))
+ (pytest-pid
+ ;; Reap zombie processes, necessary for the
+ ;; 'test_shutdown_subprocesses' test to pass.
+ (let loop ()
+ (match (waitpid WAIT_ANY)
+ ((pid . status)
+ (if (= pid pytest-pid)
+ (unless (zero? status)
+ (error "`pytest' exited with status"
+ status))
+ (loop))))))))))
(add-after 'install 'set-python-file-name
(lambda* (#:key inputs #:allow-other-keys)
;; Record the absolute file name of the 'python' executable in
@@ -10724,8 +10720,7 @@ installing @code{kernelspec}s for use with Jupyter
frontends.")
;; and causes deprecation warnings. Using the bootstrap variant
;; avoids that.
python-pytest-bootstrap
- python-pytest-timeout
- tini))
+ python-pytest-timeout))
(home-page "https://ipython.org")
(synopsis "IPython Kernel for Jupyter")
(description "This package provides the IPython kernel for Jupyter.")
- branch wip-syscall-update created (now 1f926dea6d), guix-commits, 2023/10/22
- 03/10: gnu: python-dbusmock: Remove dependency on (guix build syscalls)., guix-commits, 2023/10/22
- 04/10: gnu: python-dbusmock: Rewrite phases as a gexp., guix-commits, 2023/10/22
- 05/10: gnu: python-dbusmock: Use ‘search-input-file’., guix-commits, 2023/10/22
- 06/10: gnu: polkit: Remove dependency on (guix build syscalls)., guix-commits, 2023/10/22
- 01/10: gnu: mutter: Remove dependency on (guix build syscalls)., guix-commits, 2023/10/22
- 02/10: gnu: python-ipykernel: Remove dependency on (guix build syscalls).,
guix-commits <=
- 10/10: build-system/dub: Remove dependency on (guix build syscalls)., guix-commits, 2023/10/22
- 07/10: gnu: public-inbox: Remove dependency on (guix build syscalls)., guix-commits, 2023/10/22
- 09/10: build-system/android-ndk: Remove dependency on (guix build syscalls)., guix-commits, 2023/10/22
- 08/10: build-system/ant: Remove dependency on (guix build syscalls)., guix-commits, 2023/10/22