Hello all,
I have a project involving cython files with the following file hierarchy.
/setup.py
/src/homogeneousmatrix.pyx
/src/homogeneousmatrix.pxd
/src/__init__.py
/src/...
However, I have some trouble writing a working setup.py. With the
version below, generating src/homogeneousmatrix.c fails, apparently
because it does not use the corresponding pxd file, where some
necessary ctypedef are made.
I can compile everything with this setup.py:
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
setup(
name='arboris',
packages=['arboris',
'arboris.robots'],
package_dir = {'arboris':'src'},
cmdclass = {'build_ext': build_ext},
ext_package='arboris',
ext_modules = [Extension("homogeneousmatrix",
["src/homogeneousmatrix.pyx"])]
)
However, with the following one, generating src/homogeneousmatrix.c
fails, apparently because cython does not find/use the corresponding
pxd file
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
setup(
name='arboris',
packages=['arboris',
'arboris.robots'],
package_dir = {'arboris':'src'},
cmdclass = {'build_ext': build_ext},
ext_modules = [Extension("arboris.homogeneousmatrix",
["src/homogeneousmatrix.pyx"])]
)
I was wondering if this was an expected behaviour or a bug.
Have a nice week-end all.
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev