I'm having trouble with .pxd files across packages.

My main program directory has a few packages in it, one called 'sm'
and one called 'filters'.

In 'filters', I have a dc.pyx and a dc.pxd, implementing an extension
class called DC.

In 'sm', I have a sensor_manager.pyx that does the following:

from filters.dc cimport DC

I get the following error when running setup.py:

/Users/parlarjb/src/gui/sm/sensor_manager.pyx:31:0: 'filters.dc.pxd' not found

The important part of my setup.py is:

setup(
        name = "Vibration Analysis",
        ext_modules=[
        Extension("filters.dc", ["filters/dc.pyx"]),
        Extension("sm.sensor_manager", ["sm/sensor_manager.pyx"]),
        ],
        cmdclass = {'build_ext': build_ext}
     )


Any thoughts?

Jay P.
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to