diff options
author | David Cournapeau <cournape@gmail.com> | 2009-12-03 16:03:38 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2009-12-03 16:03:38 +0000 |
commit | f7dd25718e2e8135be2287bfa22967c1c7981448 (patch) | |
tree | ee21e7a69bacf611c4600739478327f5ee4227c0 /numpy/distutils | |
parent | 944bb9fb73ed888f9917e3059274af2f3fa652fb (diff) | |
download | numpy-f7dd25718e2e8135be2287bfa22967c1c7981448.tar.gz |
Py3k: handle relative import in ccompiler.
Diffstat (limited to 'numpy/distutils')
-rw-r--r-- | numpy/distutils/ccompiler.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/numpy/distutils/ccompiler.py b/numpy/distutils/ccompiler.py index f20fea22e..3b4854d5d 100644 --- a/numpy/distutils/ccompiler.py +++ b/numpy/distutils/ccompiler.py @@ -160,7 +160,11 @@ def CCompiler_compile(self, sources, output_dir=None, macros=None, # method to support pre Python 2.3 distutils. if not sources: return [] - from fcompiler import FCompiler + # FIXME:RELATIVE_IMPORT + if sys.version_info[0] < 3: + from fcompiler import FCompiler + else: + from numpy.distutils.fcompiler import FCompiler if isinstance(self, FCompiler): display = [] for fc in ['f77','f90','fix']: |