On Wed, Sep 26, 2012 at 3:11 AM, Volker Braun <
vbrau...@gmail.com> wrote:
> One question is how to implement this, especially since the optional Sage
> library code might only be imported if one tries to run the optional test.
> So it seem that static code analysis isn't sufficient here. Also, right now
> it is clear from the docstring what you need to run an optional doctest, and
> any automatic system needs to provide a clear error message to the user
> instead of some obscure backtrace.
>
> We could implement a special OptionalPackageMissing exception and all Sage
> library code that optional code has to raise if their dependency is missing.
> Perhaps subclassing the exception for each optional package.
I was imagining something much simpler. The doctest framework would
know about several of the optional tags, along with how to detect them
(e.g. it could simply see if gcc, magma, etc. is in the path). Unknown
optional flags would simply remain off.
> --
> You received this message because you are subscribed to the Google Groups
> "sage-devel" group.
> To post to this group, send email to
sage-...@googlegroups.com.
> To unsubscribe from this group, send email to
>
sage-devel+...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/sage-devel?hl=en.
>
>