[Cython] cimport across packages
Jay Parlar
parlar at gmail.com
Fri Jul 11 00:12:36 CEST 2008
I've put up a minimal example at http://django.jayparlar.com/example.tar
Unless I have filters.dc.pxd in both the 'filters' and 'sm'
directories, it won't compile. If I place it in both directories, it
compiles and runs fine, but I'd rather not copy-paste.
Thanks,
Jay P.
On 7/10/08, Robert Bradshaw <robertwb at math.washington.edu> wrote:
> For the Sage project we have code split accross dozens of directories,
> with relative and local imports throughtout as if they were Python fils,
> so this does work.
>
> Perhaps you could post your code (or at least a non-working example)
> somewhere, and I could take a look later to see if you're configuring
> somethign wrong (or it's a bug in Cython).
>
>
> - Robert
>
>
> On Thu, 10 Jul 2008, Jay Parlar wrote:
>
> > On 7/10/08, Anatoly A. Kazantsev <jim-crow at rambler.ru> wrote:
> >> Oh, I don't split sources to different directories.
> >
> > Ok, so I *kind* of have it working, in that it works, but I'm not
> > happy about it. It seems that if I put 'filters.dc.pxd' in *both* the
> > 'filters' directory AND the 'sm' directory, then it happily compiles.
> > But there must be a better way than copy-pasting.
> >
> > Jay P.
>
> > _______________________________________________
> > Cython-dev mailing list
> > Cython-dev at codespeak.net
> > http://codespeak.net/mailman/listinfo/cython-dev
> >
> _______________________________________________
> Cython-dev mailing list
> Cython-dev at codespeak.net
> http://codespeak.net/mailman/listinfo/cython-dev
>
More information about the Cython-dev
mailing list