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