#12868: Attaching a pyx file in the presence of __init__.py results in wrong
module
names
-----------------------------+----------------------------------------------
Reporter: SimonKing | Owner: jason
Type: defect | Status: new
Priority: major | Milestone: sage-5.1
Component: misc | Resolution:
Keywords: | Work issues:
Report Upstream: N/A | Reviewers:
Authors: | Merged in:
Dependencies: | Stopgaps:
-----------------------------+----------------------------------------------
Comment (by leif):
Replying to [comment:6 SimonKing]:
> Replying to [comment:5 leif]:
> > ... the following does '''not''' solve your problem (if it really is
one):
>
> We have a module containing a class bla, but
`sys.modules[bla.__module__]` gives a key error. I am surprised that you
question whether that is a problem.
No, I'd rather say it's a "user error"... ;-)
Seriously, my above patch didn't work because the link was removed just
too late (since I initially thought the problem was caused by distutils,
which it is not).
Currently changing the patch to remove the (in your opinion) undesirable
link to `__init__.py` earlier, such that `cython`, when invoked, won't see
it.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12868#comment:7>
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.