Ask Your Question

Revision history [back]

I think this is a great question, although it should probably include a reference to the sage-devel thread.

Of course (as you know) there isn't really much information there, except some concerns that it is no longer actively maintained, and therefore might not be a worthwhile pursuit for Sage. Also there seems to be some concern that there would be trouble communicating between the C code in Sage and the Fortran code in GotoBLAS. Maybe someone proposed a resolution for that, but I can't tell :(

In any case, thanks for asking; maybe someone who knows better will notice the question here . . .

I think this is a great question, although it should probably include a reference to the sage-devel thread.

Of course (as you know) there isn't really much information there, except some concerns that it is no longer actively maintained, and therefore might not be a worthwhile pursuit for Sage. Also there seems to be some concern that there would be trouble communicating between the C code in Sage and the Fortran code in GotoBLAS. Maybe someone proposed a resolution for that, but I can't tell :(

In any case, thanks for asking; maybe someone who knows better will notice the question here . . .


UPDATE:

Oh, maybe I do have an idea: The answer to this question is probably the same as the answer to "How do I use a compiled C library in Python?". For that, the answer must begin with Cython. In particular, here is the Cython documentation page for Using C libraries. Strangely, however, the examples on that page don't seem to ever explain what to do if you already have the .a or .so files. Maybe you can figure that out, or already know -- I think distutils has something to do with this. Anyway, there is a related question on Stack Overflow which does seem to address this . . . maybe between these two there's enough to get you going?

p.s. I really don't understand C, libraries, Cython, or distutils, I've just read about them a lot . . . my apologies if this is all totally obvious and unhelpful, or wrong.