#18904: Automatically test optional non-packages (CPLEX, Gurobi, Maple?, ..)
-------------------------+-------------------------------------------------
       Reporter:         |        Owner:
  ncohen                 |       Status:  needs_work
           Type:         |    Milestone:  sage-6.8
  enhancement            |   Resolution:
       Priority:  major  |    Merged in:
      Component:         |    Reviewers:
  doctest framework      |  Work issues:
       Keywords:         |       Commit:
        Authors:         |  9a011eb0a49a3041ae8574e9ce760a8556516417
  Nathann Cohen          |     Stopgaps:
Report Upstream:  N/A    |
         Branch:         |
  public/18904           |
   Dependencies:         |
-------------------------+-------------------------------------------------

Comment (by ncohen):

 > Are we sure that we actually ''want'' to do this?

 If you oppose the changes involving `Maple/Matlab` and others then I do
 not mind removing them for you. We can keep Gurobi and CPLEX for they are
 only used by Sage if the user explicitly linked them with it.

 > 1. Never use `except:`. Use `except Exception:` or some other specific
 exception class.

 I thought that here it was pretty safe: I do not want this test to ever
 break, and if there is something wrong with the mathematica/maple/...
 interface, then other doctests will have to report it.

 > 2. Code structure: can we please move all this detect-optional-packages
 code to a separate function?

 I will add a commit.

 > 3. Performance: how much time does it take to run all those tests?

 Almost nothing, give it a try. That's clearly negligible against the time
 it takes to run the `sage -b` part of `sage -btp`.

 > Note that #13540 has a system for "lazy" checking of optional
 dependencies

 I do not see a need for that given the time it takes to run those tests.
 Especially, if you want the maple/matlab/others to be removed from the
 list.

 Nathann

--
Ticket URL: <http://trac.sagemath.org/ticket/18904#comment:20>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to