#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 fbissey):

 Looking at all that stuff in the spkg and comparing to Gentoo. Not very
 pretty.
 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.
 In the patch to gnu.py there is:
 {{{
 +        # Note that sse flags and so on lead to gfortran code that
 segfaults, so disable arch flags
 +        return opt
 +
 }}}
 An extract of the Gentoo set up:
 {{{
         export NUMPY_FCONFIG="config_fc --noopt --noarch"
 }}}
 Actually  here is the full set up that you might find interesting:
 {{{
         # See progress in http://projects.scipy.org/scipy/numpy/ticket/573
         # with the subtle difference that we don't want to break Darwin
 where
         # -shared is not a valid linker argument
         if [[ ${CHOST} != *-darwin* ]] ; then
                 append-ldflags -shared
         fi

         # only one fortran to link with:
         # linking with cblas and lapack library will force
         # autodetecting and linking to all available fortran compilers
         use lapack || return
         [[ -z ${FC} ]] && FC=$(tc-getFC)
         # when fortran flags are set, pic is removed.
         FFLAGS="${FFLAGS} -fPIC"
         export NUMPY_FCONFIG="config_fc --noopt --noarch"
 }}}
 The other patches we have are relatively minor, a fix to the f2py man
 page,
 a patch for freebsd - that may be usefull, a patch for interix(!).
 I cannot comment on the cygwin patches but they look very small.
 We are are a bit more anal with site.cfg, I don't think it is useful in
 the
 context of sage - we just have more complex possible combinations of
 blas/lapack.

 The NUMPY_FCONFIG is passed to distutils as an argument of
 {{{
 python setup.py install
 }}}
 i.e. in the end what we do boils down to "python setup.py install
 ${NUMPY_FCONFIG}".

 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.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9808#comment:8>
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.

Reply via email to