aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2024-05-06 22:54:07 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2024-12-13 20:18:40 +0000
commit1ced46f4f7e0b0a7bbca379497a5afe3007cb75c (patch)
treea48e24c6f5cdf5913a87fe6f421df8e184ceb390
parentb2355d26e2b559aa8c3f95628e4105e91efbd721 (diff)
downloadguix-1ced46f4f7e0b0a7bbca379497a5afe3007cb75c.tar.gz
guix-1ced46f4f7e0b0a7bbca379497a5afe3007cb75c.zip
gnu: python-ipykernel: Set environment variable.
* gnu/packages/python-xyz.scm (python-ipykernel)[arguments]: Set JUPYTER_PLATFORM_DIRS variable. Change-Id: I99808fcb0e29600b8728d9fbb8ef0f7e0624f99c
-rw-r--r--gnu/packages/python-xyz.scm2
1 files changed, 2 insertions, 0 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 125ecfd8b6..885dae8a6b 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -12894,6 +12894,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