#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                                  
  |    Upstream:  Reported upstream. Developers acknowledge bug.
   Reviewer:  Karl-Dieter Crisman, David Kirkby, Leif Leonhardy, Francois 
Bissey  |      Merged:                                                
Work_issues:                                                                    
  |  
----------------------------------------------------------------------------------+

Comment(by jhpalmieri):

 The patch affects two files.  One part of the patch is this:
 {{{
 #!diff
 diff --git a/numpy/core/setup.py b/numpy/core/setup.py
 index ad8d5cb..f71ec10 100644
 --- a/numpy/core/setup.py
 +++ b/numpy/core/setup.py
 @@ -215,10 +215,13 @@ def check_ieee_macros(config):
      _macros = ["isnan", "isinf", "signbit", "isfinite"]
      if sys.version_info[:2] >= (2, 6):
          for f in _macros:
 -            already_declared = config.check_decl(fname2def("decl_%s" %
 f),
 +            py_symbol = fname2def("decl_%s" % f)
 +            already_declared = config.check_decl(py_symbol,
                      headers=["Python.h", "math.h"])
              if already_declared:
 -                pub.append('NPY_%s' % fname2def("decl_%s" % f))
 +                if config.check_macro_true(py_symbol,
 +                        headers=["Python.h", "math.h"]):
 +                    pub.append('NPY_%s' % fname2def("decl_%s" % f))
              else:
                  macros.append(f)
      else:
 }}}
 and for example the line "{{{already_declared =
 config.check_decl(fname2def("decl_%s" % f),}}}" is not present in the
 1.5.0 version.

 Maybe you can modify it (and maybe easily) to apply to 1.5.0, but the
 diff, as written, does not.

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