guix-commits
[Top][All Lists]
Advanced

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

05/05: gnu: python-jupyter-core: Use GUIX_PYTHONPATH.


From: guix-commits
Subject: 05/05: gnu: python-jupyter-core: Use GUIX_PYTHONPATH.
Date: Sun, 22 Aug 2021 07:11:47 -0400 (EDT)

efraim pushed a commit to branch core-updates-frozen
in repository guix.

commit 06e258c3c08cdd78bf329e4c8a5543749f13d8d2
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sun Aug 22 14:03:53 2021 +0300

    gnu: python-jupyter-core: Use GUIX_PYTHONPATH.
    
    * gnu/packages/python-xyz.scm (python-jupyter-core)[arguments]: Adjust
    custom 'patch-testsuite phase to use GUIX_PYTHONPATH as the PYTHONPATH.
---
 gnu/packages/python-xyz.scm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 6b4e622..f499a40 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -7787,12 +7787,12 @@ without using the configuration machinery.")
          (add-after 'unpack 'patch-testsuite
            (lambda _
              ;; test_not_on_path() and test_path_priority() try to run a test
-             ;; that loads jupyter_core, so we need PYTHONPATH
+             ;; that loads jupyter_core, so we need GUIX_PYTHONPATH
              (substitute* "jupyter_core/tests/test_command.py"
                (("env = \\{'PATH': ''\\}")
-                "env = {'PATH': '', 'PYTHONPATH': os.environ['PYTHONPATH']}")
+                "env = {'PATH': '', 'PYTHONPATH': 
os.environ['GUIX_PYTHONPATH']}")
                (("env = \\{'PATH':  str\\(b\\)\\}")
-                "env = {'PATH': str(b), 'PYTHONPATH': 
os.environ['PYTHONPATH']}"))
+                "env = {'PATH': str(b), 'PYTHONPATH': 
os.environ['GUIX_PYTHONPATH']}"))
              #t))
          ;; Migration is running whenever etc/jupyter exists, but the
          ;; Guix-managed directory will never contain any migratable IPython



reply via email to

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