You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cython contains some special casing code that compiles a file named pkg.mod.pyx into a package qualified module. This complicates the module search code and leads users to weird directory setups instead of just sticking to the normal Python package layout:
All code that searches for pkg.mod.pyx, or that extracts package and module name from such a filename should be removed.
The text was updated successfully, but these errors were encountered:
There actually is nothing cython does special. It is enough to create a distutils.extension.Extension with a dot in the name outer_package.inner_module, and distutils will automatically create it in outer_package/inner_module. This is slightly documented in the name docstring:
name : string
the full name of the extension, including any packages -- ie.
*not* a filename or pathname, but Python dotted name
All cython could do is start to check for a name that contains dot and raise an error.