#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 Snark):
I now determined how sage_getsource(sage.sets.disjoint_set.OP_represent)
gets interpreted in sageinspect.py:
1. try to use the _sage_src_ method and raise an AttributeError, line 1552
(gets pass-ed)
2. try to use sage_getsourcelines, line 1556 and get None
3. after a test of the previous value, return None, line 1558
The problems turns into: why does
sage_getsourcelines(sage.sets.disjoint_set.OP_represent) return None?
Let's follow the trail again:
1. try to use the _sage_src_lines_ method and raise an AttributeError line
1783 (gets pass-ed)
2. is it a class instance, line 1791? No.
3. get a nice-looking doctring line 1802, except that the filename reads
'res_pyx.pxi'
4. try to use _extract_embedded_position on it... get to line 200... where
the filename gets obtained by os.path.join(SAGE_SRC,
res.group('FILENAME'))
5. from there, the rest is history: we have a wrong filename in a wrong
path, so it's no surprise things get messy.
So now I see two problems there: first, the only file with a name looking
like this is sage/groups/perm_gps/partn_ref/data_structures_pyx.pxi, and
second, the way the full path is obtained from the filename looks too
naive.
How can I debug the first problem?
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12728#comment:45>
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.