Stefan Behnel <stefan...@...> writes:
>
>
> What Robert mean, was: Did you compile the module from source files that
> are inside the package directory? Cython needs to know the package
> structure at compile time, it's not enough to move the shared libraries
> around.
>
> Stefan
>
>
Yes, I moved the .pyx and .pxd files to the same folder as the shared libraries
are built and changed my setup.py so that those files were built.
My current folder structure:
package/
__init__.py - Empty
module_A.pyd
module_A.pxd
module_A.pyx
module_B.pyd
module_B.pxd
module_B.pyx
setup.py
My setup.py:
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
A_module = Extension('module_A',
sources = ['module_A.pyx'])
B_module = Extension('module_B',
sources = ['module_B.pyx'])
setup(
name='package',
packages=['package'],
cmdclass = {'build_ext': build_ext},
ext_modules = [A_module, B_module]
)
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev