So, ignore that patch. I realize now that package level importing is required for c modules -- why?? -- anyway, the real inconsistency is that relative importing is required in the pxd files... I would rather all one way or all the other.
On Mon, Jun 28, 2010 at 8:43 AM, Jared Forsyth <[email protected]>wrote: > Apparently, if your .pyx is inside a "package" -- nested inside a few > directories -- cython's searching protocol changes -- without telling you. > It *won't look in the current directory*, instead opting for the base > package dir. > I've fixed it to first look in the package base, and then in the current > directory. > > diff -r 8bff3332e34f Cython/Compiler/Main.py > --- a/Cython/Compiler/Main.py Tue Feb 02 02:10:32 2010 -0800 > +++ b/Cython/Compiler/Main.py Mon Jun 28 08:42:42 2010 -0600 > @@ -337,7 +337,7 @@ > if include: > dirs = [os.path.dirname(file_desc.filename)] + dirs > else: > - dirs = [self.find_root_package_dir(file_desc.filename)] + > dirs > + dirs = [self.find_root_package_dir(file_desc.filename), > os.path.dirname(file_desc.filename)] + dirs > > dotted_filename = qualified_name > if suffix: > >
_______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
