On 9/19/07, Simon King <[EMAIL PROTECTED]> wrote: > > Dear William, > > On Sep 19, 11:18 am, "William Stein" <[EMAIL PROTECTED]> wrote: > <snip> > > > It did compile, i obtained an .so file. > > > > How? Did you try the system-wide Pyrex? > > Yes. It was joint work of pyrexc and gcc. > > > If so, instead try doing > > > > sage -cython filename.pyx
You'll probably want to use Cython instead of pyrexc, since it is faster and supports list comprehensions. See http://cython.org > This yields essentially the same complaint: > ...388:9: undeclared name not builtin: sage > > In other words, sage is unknown to sage... > > However (see my previous mail), putting > import sage > in the .pyx file solves the problem, even when i just use pyrexc/gcc > > In other words, simply having > from sage.matrix.matrix_space import MatrixSpace > (according to Mike's advice) was not enough. That is really weird. It might be a bug. William --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@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-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~----------~----~----~----~------~----~------~--~---