[Cython] cimport across packages
Anatoly A. Kazantsev
jim-crow at rambler.ru
Thu Jul 10 06:39:43 CEST 2008
On Wed, 9 Jul 2008 23:55:42 -0400
"Jay Parlar" <parlar at gmail.com> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://codespeak.net/pipermail/cython-dev/attachments/20080710/b4c6a0e6/attachment.pgp
More information about the Cython-dev
mailing list