Commit 7c2bddc1 authored by Robert Bradshaw's avatar Robert Bradshaw

Enable relative cimports

parent bc0844d1
...@@ -189,7 +189,7 @@ class Context: ...@@ -189,7 +189,7 @@ class Context:
c_stat = os.stat(result.c_file) c_stat = os.stat(result.c_file)
except EnvironmentError: except EnvironmentError:
pass 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) initial_pos = (source, 1, 0)
scope = self.find_module(module_name, pos = initial_pos, need_pxd = 0) scope = self.find_module(module_name, pos = initial_pos, need_pxd = 0)
errors_occurred = False errors_occurred = False
......
...@@ -8,4 +8,4 @@ ...@@ -8,4 +8,4 @@
# so that *our* build_ext can make use of it. # so that *our* build_ext can make use of it.
from build_ext import build_ext from build_ext import build_ext
from extension import Extension # from extension import Extension
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment