guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

88/361: gnu: python-ipykernel: Set environment variable.


From: guix-commits
Subject: 88/361: gnu: python-ipykernel: Set environment variable.
Date: Thu, 21 Nov 2024 06:28:55 -0500 (EST)

sharlatan pushed a commit to branch python-team
in repository guix.

commit 0843da7e38e384efa00e9ca4a7a4d1588e1b9bb3
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Mon May 6 22:54:07 2024 +0200

    gnu: python-ipykernel: Set environment variable.
    
    * gnu/packages/python-xyz.scm (python-ipykernel)[arguments]: Set
    JUPYTER_PLATFORM_DIRS variable.
    
    Change-Id: I99808fcb0e29600b8728d9fbb8ef0f7e0624f99c
---
 gnu/packages/python-xyz.scm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 83a242f2a0..600cb1b3b5 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -12867,6 +12867,8 @@ installing @code{kernelspec}s for use with Jupyter 
frontends.")
               (when tests?
                 (match (primitive-fork)
                   (0                    ;child process
+                   ;; jupyter-core demands this be set.
+                   (setenv "JUPYTER_PLATFORM_DIRS" "1")
                    (setenv "HOME" "/tmp")
                    (execlp "pytest" "pytest" "-vv"))
                   (pytest-pid



reply via email to

[Prev in Thread] Current Thread [Next in Thread]