Hi Volker, On 2015-09-06, Volker Braun <vbraun.n...@gmail.com> wrote: > There is a canonical "version without patchlevel" provided by the > sage_bootstrap library, nobody should re-implement "chopping off chars". > E.g. (note the edge case): > > In [1]: import sys > In [2]: sys.path.append('build') > In [3]: from sage_bootstrap.package import Package > In [4]: Package('singular').version > Out[4]: '3.1.7p1' > In [5]: !cat build/pkgs/singular/package-version.txt > 3.1.7p1.p0
Nice, thanks for the pointer! But would that work in a binary distribution (i.e., is "build" present in a binary distribution?)? > Still, your own interface need not correspond to a particular Sage package > (e.g. the M* interfaces). So version has to come from the interfaced > program. Sure. But a whole bunch of interfaces *is* coming from a standard package. What would be your preference for <interface>.version()? - Output always a string? - Output always a version number? (Note that currently singular.version() yields much more than just a version number) Cheers, Simon -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.