Hi All, On 2012-12-20, Burcin Erocal <bur...@erocal.org> wrote: > On Thu, 20 Dec 2012 14:10:55 +0100 > Some examples of Python/Cython packages that depend on Sage: > > http://sage.math.washington.edu/home/SimonKing/Cohomology/
As author of this package, I can confirm that it works easily to create Cython modules in an optional package, linking against Sage's pxd headers. And of course, if you install any python module (say, using easy_install) in a Sage shell, then you can import things in a Sage session. In the cohomology package, it simply is "from pGroupCohomology.cochain import ...". Concerning documentation, note the environment variable SAGE_SPKG_INSTALL_DOCS. If it is "yes", an optional spkg is supposed to build documentation and put it into SAGE_ROOT/local/share/doc/<package_import_name>/html. Not all optional spkgs do that, but IIRC I was told that this is how things *should* work. But I think the OP's question was different. If I understand correctly, the problem is that the experimental/optional package offers additional methods that would be useful in *existing* methods from the Sage library. Say, you have an spkg that computes Gröbner bases much easier than Singular in some cases, then you want to modify the groebner_basis() method so that the algorithm from the spkg can be selected. And I don't see how that would be possible without modifying the Sage library. Best regards, Simon -- 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.