From 7c2bddc119da28c1b44a927101eef76654f1fb82 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Wed, 24 Oct 2007 00:15:01 -0700 Subject: [PATCH] Enable relative cimports --- Cython/Compiler/Main.py | 2 +- Cython/Distutils/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.26.2