I\'m trying to import a cython module data.pyx into another cython module user.pyx. Everything compile fine, but when I try to call user.pyx in a python module, I am getting
I encounter this problem again in an another project. To solve it, here is what I did:
import and cimport statement must be fully qualified rootFolder setup.py must be at the same level than the rootFolder rooFolder including the rootFolder must contains a __init__.py setup.py the extension's include_dirs must contains '.' I created a simple project which illustrates this here.
This page helped me created it.
But my project is simpler and I think it would have helped me a lot if I had it.
My project also illustrate how to automatically build all cython files in a project.