#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 drkirkby):
A few points.
* I'm going to be very busy over the next week, and particularly today,
so I don't have a lot of time to put into this.
* I believe the pacakge should be called 1.5.0 and not 1.5.0.p0 - this
was discussed some time ago on sage-devel.
* I'm not sure that 'sed' command is doing what John wants. Instead of
using 'uname' for test purposes, use 'echo'.
{{{
drkir...@hawk:~$ echo 10.1.4 | sed 's/\([0-9]*\)\..*/\1/'
10
drkir...@hawk:~$ echo 10.6.0 | sed 's/\([0-9]*\)\..*/\1/'
10
drkir...@hawk:~$ echo 10.6.0 | sed 's/\([0-9]*\)\..*/\1/'
10
drkir...@hawk:~$ echo 10.5.1 | sed 's/\([0-9]*\)\..*/\1/'
10
drkir...@hawk:~$ echo 9.5.1 | sed 's/\([0-9]*\)\..*/\1/'
9
drkir...@hawk:~$ echo 10.4.1 | sed 's/\([0-9]*\)\..*/\1/'
10
}}}
That looks to be taking only the major part, and so can't distinguish from
10.5 or 10.6, which I think is what is said is needed. If that's what's
needed, my approach would be
* Simulate the output of 'uname -r' (which is portable, so can be used on
any platform, not just OS X), using 'echo'. That way you don't need to
find different systems to test on.
* Make sure the OS is OS X. My HP C3600 runs HP-UX 11.11 and I expect
(though it's off so I can't check), that 'uname -r' might print 11.11
which would not be any use here. So put this all in 'if' statemant that
checks for OS X first.
* If you consider the output version to be x.y.z, then I'd do something
like this, where I split the x.y.z into individual parts, by first
replacing the dots with a space, then printing the 1st, 2nd or 3rd part of
the expressions using 'awk'.
{{{
drkir...@hawk:~$ echo 10.4.1
10.4.1
drkir...@hawk:~$ echo 10.4.1 | sed 's/\./ /g'
10 4 1
drkir...@hawk:~$ echo 10.4.1 | sed 's/\./ /g' | awk '{print $1}'
10
drkir...@hawk:~$ echo 10.4.1 | sed 's/\./ /g' | awk '{print $2}'
4
drkir...@hawk:~$ echo 10.4.1 | sed 's/\./ /g' | awk '{print $3}'
1
drkir...@hawk:~$
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9808#comment:267>
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.