cython-devel
changeset 1938:6900df959135
Fix ticket #4, from package cimport module
| author | Robert Bradshaw <robertwb@math.washington.edu> |
|---|---|
| date | Thu Apr 02 16:45:33 2009 -0700 (2 years ago) |
| parents | 578538c78cca |
| children | c3ed65ed7dd3 |
| files | Cython/Compiler/Main.py |
line diff
1.1 --- a/Cython/Compiler/Main.py Thu Apr 02 16:00:08 2009 -0700
1.2 +++ b/Cython/Compiler/Main.py Thu Apr 02 16:45:33 2009 -0700
1.3 @@ -254,7 +254,11 @@
1.4 if debug_find_module:
1.5 print("......found ", pxd_pathname)
1.6 if not pxd_pathname and need_pxd:
1.7 - error(pos, "'%s.pxd' not found" % module_name)
1.8 + package_pathname = self.search_include_directories(module_name, ".py", pos)
1.9 + if package_pathname and package_pathname.endswith('__init__.py'):
1.10 + pass
1.11 + else:
1.12 + error(pos, "'%s.pxd' not found" % module_name)
1.13 if pxd_pathname:
1.14 try:
1.15 if debug_find_module:
