On Wed, May 22, 2013 at 9:58 AM, Nicolas M. Thiery
<
Nicolas...@u-psud.fr> wrote:
> On Wed, May 22, 2013 at 09:13:09AM -0700, kcrisman wrote:
>> A standard package which is only useful in the presence of an optional
>> package doesn't make sense to me.
>
> It simplifies our users's life, and that is useful! Also it simplifies
> *my* life: I am tired, e.g. during Sage Days, of having to explain
> about Sage packages to our complete beginners for something that is
> often one of the very first feature that they want to play with.
I installed the dot2tex package on
https://cloud.sagemath.com, but
when I try to actually use it with this example:
g = sage.categories.category.category_graph()
g.set_latex_options(format="dot2tex")
view(g, pdflatex=True, tightpage = True)
I just get this error:
RuntimeError:
dot2tex not available.
graphviz is installed systemwide via "sudo apt-get install graphviz".
Anyway, I'm surprised that I'm thwarted at using dot2tex to do
anything with Sage on an Ubuntu 12.04 LTS system, which is pretty
standard.
>
> There is plenty of code in the Sage library that only works in the
> presence of optional packages. But we ship it standard. Or shall we
> extract, e.g. the interface to Maple/Magma/... as optional packages? :-)
Maple/Magma/etc. are not optional packages.
> A partial answer for Dima: for the notebook spkg to be useful, you
> need either a local browser or you want to be running it securely,
> which requires the optional pyopenssl spkg.
A network service that only binds to localhost doesn't need ssl.
Also, one can easily (one line) make an *ssh tunnel* to run the
notebook securely on a remote machine without installing pyopenssl.
> So there already exists a
> standard spkg that depends on an optional spkg or an optional system
> package.
>
>> And I fail to see why installing both graphviz and dot2tex is
>> more difficult than just installing dot2tex (either as optional
>> Sage package or system-wide).
>
> (I assume you meant graphviz in this last sentence)
>
> An answer is that graphviz is often already installed on the system.
> In which case nothing needs to be done.
I think graphviz has compiled code, whereas dot2tex is python code, so
graphviz could be hard to install.
Also relevant is that graphviz has a nasty GPL-incompatible license,
so we can never ever include it with Sage, whereas dot2tex has a very,
very standard open license:
https://code.google.com/p/dot2tex/source/browse/LICENSE
>
> Cheers,
> Nicolas
>
> PS: one technical question: can a pure python spkg be installed
> without any development tools (e.g. without having X-code installed on
> MacOS X)?
>
> --
> Nicolas M. Thiéry "Isil" <
nth...@users.sf.net>
>
http://Nicolas.Thiery.name/
>
> --
> You received this message because you are subscribed to the Google Groups "sage-combinat-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
sage-combinat-d...@googlegroups.com.
> To post to this group, send email to
sage-comb...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/sage-combinat-devel?hl=en.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>
--
William Stein
Professor of Mathematics
University of Washington
http://wstein.org