mirror of
https://src.fedoraproject.org/rpms/sagemath.git
synced 2025-04-10 23:18:51 -04:00
Also: - Create the sagemath-data-combinatorial_designs subpackage. - Create the sagemath-notebook-export subpackage. - Unbundle the LaTeX makecmds style. - Install LaTeX style files in a more canonical place.
34 lines
1.8 KiB
Diff
34 lines
1.8 KiB
Diff
diff -up src/bin/sage-maxima.lisp.orig src/bin/sage-maxima.lisp
|
|
--- src/bin/sage-maxima.lisp.orig 2018-05-05 16:21:22.000000000 -0600
|
|
+++ src/bin/sage-maxima.lisp 2018-05-16 13:25:51.499101380 -0600
|
|
@@ -4,3 +4,8 @@
|
|
|
|
(setf *prompt-prefix* "<sage-display>")
|
|
|
|
+#+clisp
|
|
+(setf
|
|
+ *error-output* (open "/dev/stderr" :direction :output)
|
|
+ *standard-input* (open "/dev/stdin" :direction :input)
|
|
+ *standard-output* (open "/dev/stdout" :direction :output))
|
|
diff -up src/sage/interfaces/maxima.py.orig src/sage/interfaces/maxima.py
|
|
--- src/sage/interfaces/maxima.py.orig 2018-05-05 16:21:24.000000000 -0600
|
|
+++ src/sage/interfaces/maxima.py 2018-05-16 13:27:01.240157806 -0600
|
|
@@ -556,7 +556,7 @@ class Maxima(MaximaAbstract, Expect):
|
|
Expect.__init__(self,
|
|
name = 'maxima',
|
|
prompt = '\(\%i[0-9]+\) ',
|
|
- command = 'maxima --userdir="%s" -p "%s"'%(SAGE_MAXIMA_DIR,STARTUP),
|
|
+ command = 'maxima --disable-readline --userdir="%s" -p "%s"'%(SAGE_MAXIMA_DIR,STARTUP),
|
|
env = {'TMPDIR': str(ECL_TMP)},
|
|
script_subdirectory = script_subdirectory,
|
|
restart_on_ctrlc = False,
|
|
@@ -624,7 +624,8 @@ class Maxima(MaximaAbstract, Expect):
|
|
|
|
# Remove limit on the max heapsize (since otherwise it defaults
|
|
# to 256MB with ECL).
|
|
- self._sendline(":lisp (ext:set-limit 'ext:heap-size 0)")
|
|
+ self._sendline(":lisp #+ecl (ext:set-limit 'ext:heap-size 0) #-ecl 0")
|
|
+ self._sendline(':lisp #+gcl (progn (si:readline-off) (setf *error-output* (open "/dev/stderr" :direction :output) *standard-input* (open "/dev/stdin" :direction :input) *standard-output* (open "/dev/stdout" :direction :output))) #-gcl t')
|
|
self._eval_line('0;')
|
|
|
|
# set random seed
|