mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 15:36:20 -05:00
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.
This commit is contained in:
parent
e685ae63bb
commit
16ad755f94
1 changed files with 12 additions and 1 deletions
|
@ -7605,7 +7605,18 @@ (define-public python-jupyter-core
|
|||
"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
|
||||
|
|
Loading…
Reference in a new issue