On Wed, 9 Jul 2008 23:55:42 -0400
"Jay Parlar" <[EMAIL PROTECTED]> wrote:

> 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.

Rename 'dc.pxd' to 'filters.dc.pxd'.
That's works for me.

-- 
Anatoly A. Kazantsev

Protect your digital freedom and privacy, eliminate DRM, learn more at
http://www.defectivebydesign.org/what_is_drm

Attachment: pgpHxK0MxI8mL.pgp
Description: PGP signature

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

Reply via email to