mirror of
https://codeberg.org/guix/guix.git
synced 2026-05-13 15:03:44 +00:00
gnu: sage: Fix ipython incompatibility.
See https://github.com/sagemath/sage/pull/41141. * gnu/packages/sagemath.scm (sage)[arguments]: Add a patch that removes an outdated function. Merges guix/guix!7737 Change-Id: Ie38eca12dceb92e95596687d9e15b826c3712184 Signed-off-by: Cayetano Santos <csantosb@inventati.org> Modified-by: Cayetano Santos <csantosb@inventati.org>
This commit is contained in:
committed by
Cayetano Santos
parent
f3cf7dcd14
commit
b5a36da89c
@@ -515,6 +515,11 @@ database.")
|
||||
(substitute* "src/sage/interfaces/gp.py"
|
||||
(("command=f\"gp")
|
||||
(string-append "command=f\"" pari-gp "/bin/gp")))
|
||||
;; Remove when updating to sage-10.8, python-3.12.
|
||||
;; See https://github.com/sagemath/sage/pull/41141
|
||||
(substitute* "src/sage/repl/display/formatter.py"
|
||||
(("from IPython.utils.py3compat import unicode_to_str") "")
|
||||
(("unicode_to_str\\(self.newline\\)") "self.newline"))
|
||||
(substitute* "src/bin/sage"
|
||||
(("exec python3")
|
||||
(string-append "exec " python "/bin/python3"))
|
||||
|
||||
Reference in New Issue
Block a user