[Cython] 0.9.8.1.1 and .pxd files

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Aug 29 03:52:08 CEST 2008


Jay Parlar wrote:

> If I have a package "foo", and a file in it called "bar.pyx", I
> created a file called "foo.bar.pxd" and placed it inside the "foo"
> package, and I created symlinks to it in all other packages that
> required it. That's the part I considered hacky, but it was the only
> way I could get it to work, short of putting ALL my .pyx files in the
> same package.
> 
> Is there a better way?

Yes, there is now -- no. 2 on that page.

In your case,

   foo
     __init__.py
     bar.pxd
     bar.pyx

-- 
Greg


More information about the Cython-dev mailing list