William,

Here is a small patch against 'axiom.py' required to support the new
Axiom package for Sage:

http://sage.math.washington.edu/home/page/packages/axiom4sage-0.3.spkg

axiom4sage-0.3 uses cached pre-compiled architecture-independent Lisp
code in order to build Axiom very quickly (requires about 12 minutes
on sage.math) using the same clisp that is used to build Maxima in
Sage. The previous version axiom4sage-0.1.1 was based on the GCL Lisp
compiler and took considerably longer to build (hours). The changes in
the interface are required by small changes to the output due to the
change in Lisp compiler.

I would be very interested in any comments or problems people have
using this version. Please consider it still experimental.

Regards,
Bill Page.

-------

diff -r c9e32102af60 sage/interfaces/axiom.py
--- a/sage/interfaces/axiom.py  Thu Aug 02 20:02:18 2007 -0700
+++ b/sage/interfaces/axiom.py  Sun Aug 12 22:22:41 2007 -0700
@@ -24,6 +24,11 @@ AUTHORS OF THIS MODULE:
              over several days during the SAGE Days 2 coding sprint.  This is
              contribution is greatly appreciated.
     -- William Stein (2006-10): misc touchup.
+    -- Bill Page (2007-08): Minor modifications to support axiom4sage-0.3
+       NOTE: The axiom4sage-0.3.spkg is based on an experimental version of
+             the FriCAS fork of the Axiom project by Waldek Hebisch that
+            uses pre-compiled cached Lisp code to build Axiom very quickly
+            with clisp.

 If the string "error" (case insensitive) occurs in the output of
 anything from axiom, a RuntimeError exception is raised.
@@ -159,7 +164,7 @@ class Axiom(Expect):
                         script_subdirectory = script_subdirectory,
                         restart_on_ctrlc = False,
                         verbose_start = False,
-                        init_code = [')lisp (si::readline-off)'],
+                        #init_code = [')lisp (si::readline-off)'],
                         logfile = logfile,
                         eval_using_file_cutoff=eval_using_file_cutoff)

@@ -170,7 +175,7 @@ class Axiom(Expect):

     def _start(self):
         Expect._start(self)
-        self._expect.expect(self._prompt)
+        #self._expect.expect(self._prompt)
         out = self._eval_line(')set functions compile on', reformat=False)
         out = self._eval_line(')set output length 245', reformat=False)
         out = self._eval_line(')set message autoload off', reformat=False)
[EMAIL PROTECTED]:~/sage-2.7.3/devel/sage-test-axiom$

-----

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to