On Thu, 20 Dec 2012 14:10:55 +0100
Charles Bouillaguet <charles.bouillag...@gmail.com> wrote:

> > I am not suggesting to patch the Sage library when installing your
> > package. You can put the interface in a separate Cython module
> > which is built by the usual Python/Cython setup.py magic and
> > installed in the system python module directory. Then people will
> > be able to import your module from the Sage command line as usual.
> 
> The python interface **uses** the sage library (matrices, modules,
> polynomials, term orders, etc. etc. etc.). It does not make sense
> outside of sage. It is a binding between sage and my piece of C-code.

Some examples of Python/Cython packages that depend on Sage:

http://sage.math.washington.edu/home/SimonKing/Cohomology/

https://github.com/williamstein/psage

Sage is supposed to be a Python library for mathematics among other
things (software distribution, notebook interface, interface to maths
software). It is natural to use it as a library. :)


> I actrually followed the same pattern I found there :
> http://trac.sagemath.org/sage_trac/ticket/418

I am aware that you followed an often used pattern for development. I
am not writing to criticize you in any way. I am merely aiming to
point out the deficiencies of this pattern.


> > I don't think there is a well established procedure for this. There
> > is code in the Sage library that depends on optional packages. This
> > works just like you described. modules_list.py already includes
> > some examples. In this case, all doctests will need to be marked
> > optional.
> 
> Strictly speaking, they don't, because the code is not even
> considered if the spkg is not there.

??? Won't it be considered if you run doctests on the full Sage library
with

sage -testall



Cheers,
Burcin

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To post to this group, send email to sage-devel@googlegroups.com.
To unsubscribe from this group, send email to 
sage-devel+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.


Reply via email to