#9808: Upgrade numpy to 1.5.0rc1 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 | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-------------------------------+--------------------------------------------
Comment(by drkirkby):
Replying to [comment:8 fbissey]:
> Looking at all that stuff in the spkg and comparing to Gentoo. Not very
pretty.
What a surprise.
> Do we really still need to use sage_fortran? On most platform we now use
a native
> fortran compiler rather than a sage shipped one - I don't know if we
still do that
> for OS X.
I've never understood the need for this {{{SAGE_FORTRAN}}}. I've tried
arguing for it to be removed and use {{{FC}}} instead, but I had no luck.
A Fortran compiler is still shipped on OS X, but I don't see why the
variable {{{FC}}} can't be made to point to that, rather than have the
variable {{{SAGE_FORTRAN}}}.
> Can you point me to your solaris fix Dave?
> I'd like to see if I can tidy all that up in something that requires
less patching
> and is more based on FLAGS settings.
On Solaris, and some OS X versions, if you want a 64-bit build, you must
add the compiler flag {{{-m64}}} with gcc. Usually, putting that in
{{{CFLAGS}}} is enough. However, for Numpy that does not work.
Someone came up with a fix for this which was implemented only on OS X,
that involved creating a wrapper script called {{{gcc_fake}}} which
basically calls gcc with the {{{-m64}}} option. You can see the script
yourself in the top level directory.
Since they had done this only on OS X, it did not work on Solaris. So I
came up with a solution for Solaris, but I avoided the wrapper script.
Instead I set the variable to {{{CC=gcc -m64}}}
I'm attaching a patch, which basically uses the Solaris on any system,
including OS X. I think this is the sensible way to do it, not have a
wrapper script.
'''I've not tested the attached patch''' - not even on Solaris!! But I
think you can see what I am trying to do. I was going to try to explain it
in words, but a bit of code, even if untested, should be more sensible.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9808#comment:9>
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.