#10492: spkg/install: implement newest_version using a shell function
---------------------------+------------------------------------------------
Reporter: jdemeyer | Owner: GeorgSWeber
Type: enhancement | Status: new
Priority: major | Milestone: sage-4.6.2
Component: scripts | Keywords: scripts install newest_version
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
---------------------------+------------------------------------------------
Comment(by vbraun):
It would be nice if a shell function `newest_version()` would also be
available for other spkg to check that required versions of dependencies
are available. So I'd like it to be in 3rd file `install-functions` (or
so) that is sourced by `install`. Perhaps with a better name, for example
`requires_version(mpir,1,1,2)`...
Moreover, the current `newest_version` script does not check that it is
called from `$SAGE_ROOT/spkg`. If it is called from the wrong directory, I
get
{{{
/home/vbraun/Sage/sage/spkg/standard
[vbraun@volker-two standard]$ ./newest_version mpir
mpir-1.2.2.p2
}}}
on Linux and
{{{
vbraun@t2:standard$ pwd
/home/vbraun/t2/sage-4.6.1-sunos-32bit-5.10-sun4v-SunOS/spkg/standard
vbraun@t2:standard$ ./newest_version mpir
}}}
(no output) on t2/Solaris.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10492#comment:2>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.