Is it possible to use nested packages (aka subdirectories) in a Cython extension, and if so, how should I do that?
It seems Cython does not allow a relative import/cimport beyond the the top level package. So, let's say I have the following Cython project structure:
/lib_interface.pyx
/lib_interface.pxd // the top level source files
/submodule/__init__.pxd
/submodule/submodule_code.pyx
/submodule/submodule_code.pxd
Let's imagine our resulted Cython lib is called SomeLib, so in Python I expect doing this: from SomeLib.submodule import SomeClass
but that results into the error saying that "SomeLib.submodule" is not a package.
I tried cimporting and importing submodule into lib_interface.pxd, but that never helped.