guix-commits
[Top][All Lists]
Advanced

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

branch master updated: gnu: python-jupyter-core: Disable config migratio


From: guix-commits
Subject: branch master updated: gnu: python-jupyter-core: Disable config migration.
Date: Fri, 14 May 2021 09:55:08 -0400

This is an automated email from the git hooks/post-receive script.

lbraun pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 16ad755  gnu: python-jupyter-core: Disable config migration.
16ad755 is described below

commit 16ad755f94597cc47725a030ef1a65f94d4155c8
Author: Lars-Dominik Braun <lars@6xq.net>
AuthorDate: Fri May 14 15:53:48 2021 +0200

    gnu: python-jupyter-core: Disable config migration.
    
    * gnu/packages/python-xyz.scm (python-jupyter-core) [#:phases]: Add new
    phase 'disable-migration, which disables migration of Guix-owned
    configuration directories.
---
 gnu/packages/python-xyz.scm | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 3c57498..cf0eba3 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -7605,7 +7605,18 @@ without using the configuration machinery.")
                 "env = {'PATH': '', 'PYTHONPATH': os.environ['PYTHONPATH']}")
                (("env = \\{'PATH':  str\\(b\\)\\}")
                 "env = {'PATH': str(b), 'PYTHONPATH': 
os.environ['PYTHONPATH']}"))
-             #t)))))
+             #t))
+         ;; Migration is running whenever etc/jupyter exists, but the
+         ;; Guix-managed directory will never contain any migratable IPython
+         ;; config files and cannot be written to anyway, so just pretend we
+         ;; already did that.
+         (add-after 'install 'disable-migration
+           (lambda* (#:key outputs #:allow-other-keys)
+             (mkdir-p (string-append (assoc-ref outputs "out") "/etc/jupyter"))
+             (invoke "touch"
+               (string-append
+                 (assoc-ref outputs "out")
+                 "/etc/jupyter/migrated")))))))
     (propagated-inputs
      `(("python-traitlets" ,python-traitlets)))
     (native-inputs



reply via email to

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