#12728: sage's spkg sources should use correct include paths instead of having
../../../../whatever everywhere
--------------------------------+-------------------------------------------
       Reporter:  Snark         |         Owner:  Snark                       
           Type:  enhancement   |        Status:  needs_work                  
       Priority:  minor         |     Milestone:  sage-5.10                   
      Component:  build         |    Resolution:                              
       Keywords:                |   Work issues:                              
Report Upstream:  N/A           |     Reviewers:  Volker Braun, Jeroen Demeyer
        Authors:  Julien Puydt  |     Merged in:                              
   Dependencies:                |      Stopgaps:                              
--------------------------------+-------------------------------------------

Comment (by vbraun):

 This is what broke:
 {{{
 sage:
 sage.misc.sageinspect.sage_getargspec(sage.sets.disjoint_set.OP_represent)
 ---------------------------------------------------------------------------
 NameError                                 Traceback (most recent call
 last)
 <ipython-input-1-b9940f7f2356> in <module>()
 ----> 1 sage_getargspec(sage.sets.disjoint_set.OP_represent)

 NameError: name 'sage_getargspec' is not defined
 sage:
 sage.misc.sageinspect.sage_getargspec(sage.sets.disjoint_set.OP_represent)
 ---------------------------------------------------------------------------
 AttributeError                            Traceback (most recent call
 last)
 <ipython-input-2-ee04891bf854> in <module>()
 ----> 1
 sage.misc.sageinspect.sage_getargspec(sage.sets.disjoint_set.OP_represent)

 /home/vbraun/opt/sage-5.10.beta3/local/lib/python2.7/site-
 packages/sage/misc/sageinspect.pyc in sage_getargspec(obj)
    1332         except TypeError: # arg is not a code object
    1333         # The above "hopefully" was wishful thinking:
 -> 1334             return
 inspect.ArgSpec(*_sage_getargspec_cython(sage_getsource(obj)))
    1335             #return _sage_getargspec_from_ast(sage_getsource(obj))
    1336     try:

 /home/vbraun/opt/sage-5.10.beta3/local/lib/python2.7/site-
 packages/sage/misc/sageinspect.pyc in _sage_getargspec_cython(source)
     984
     985     """
 --> 986     defpos = source.find('def ')
     987     assert defpos > -1, "The given source does not contain 'def'"
     988     s = source[defpos:].strip()

 AttributeError: 'NoneType' object has no attribute 'find'
 }}}
 used to be
 {{{
 sage:
 sage.misc.sageinspect.sage_getargspec(sage.sets.disjoint_set.OP_represent)
 ArgSpec(args=['n', 'merges', 'perm'], varargs=None, keywords=None,
 defaults=None)
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12728#comment:41>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to