From: Robert Bradshaw Date: Wed, 24 Oct 2007 07:15:01 +0000 (-0700) Subject: Enable relative cimports X-Git-Tag: 0.9.6.14~29^2~114 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7c2bddc119da28c1b44a927101eef76654f1fb82;p=cython.git Enable relative cimports --- diff --git a/Cython/Compiler/Main.py b/Cython/Compiler/Main.py index 54b17b0b..9e517958 100644 --- a/Cython/Compiler/Main.py +++ b/Cython/Compiler/Main.py @@ -189,7 +189,7 @@ class Context: c_stat = os.stat(result.c_file) except EnvironmentError: pass - module_name = self.extract_module_name(source, options) + module_name = full_module_name # self.extract_module_name(source, options) initial_pos = (source, 1, 0) scope = self.find_module(module_name, pos = initial_pos, need_pxd = 0) errors_occurred = False diff --git a/Cython/Distutils/__init__.py b/Cython/Distutils/__init__.py index 49493bf2..095403bf 100644 --- a/Cython/Distutils/__init__.py +++ b/Cython/Distutils/__init__.py @@ -8,4 +8,4 @@ # so that *our* build_ext can make use of it. from build_ext import build_ext -from extension import Extension +# from extension import Extension