#9808: Upgrade numpy to 1.5.0 and scipy to 0.8
----------------------------------------------------------------------------------+
Reporter: maldun
| Owner: maldun
Type: task
| Status: needs_work
Priority: major
| Milestone: sage-4.6
Component: packages
| Keywords: numpy, scipy
Author: Stefan Reiterer, Francois Bissey, John Palmieri, David Kirkby
| Upstream: Fixed upstream, but not in a stable release.
Reviewer: Karl-Dieter Crisman, David Kirkby, Leif Leonhardy, Francois
Bissey | Merged:
Work_issues:
|
----------------------------------------------------------------------------------+
Comment(by jhpalmieri):
Replying to [comment:264 fbissey]:
> Better use plain 'uname' as it should return Darwin for you if I am not
mistaken.
No, the point is you want to test not only for Darwin, but for Darwin
version 10.6, as opposed to 10.5 or 10.4. {{{uname -r}}} should return
strings like 10.4.0, 9.3.1, and 8.8.0, respectively, for these (I think).
(The last parts of the string, like 4.0 or 3.1 or 8.0, are the minor
version numbers, which I don't think we care about.)
This seems to work for me, but I'm not a sed expert:
{{{
VER=`uname -r | sed 's/\([0-9]*\)\..*/\1/'`
}}}
(This takes the output from uname -r, sends it to sed, which does a
regular expression match to return the digits found before the first
period.) Then you do something like
{{{
if [ $VER -ge 10 ]; then
...
fi
}}}
(Might as well test whether VER is at least 10, rather than equal to 10 on
the nose.)
Actually, do we know if their patch needs us to test for the Darwin
version? Do you have access to a 10.4 machine to test on?
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9808#comment:266>
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.