#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:10 SimonKing]:
> The best solution would be to patch Cython, so that the wrong naming of
modules does not occur (in some post above, I think it was shown that the
naming is chosen by Cython, not by distutils).
I don't think Cython is wrong by what it does, as `__init__.py` files
belong to the package (and hence directory) they're contained in, i.e.
`.../<package_name>/__init__.py` belongs to `<package_name>`.
Consequently, all `.py` and `.pyx` files there also belong to that
package, hence their module names get the package prefix.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12868#comment:12>
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.