diff options
author | David Cournapeau <cournape@gmail.com> | 2009-09-09 00:37:14 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2009-09-09 00:37:14 +0000 |
commit | 3a3b5e09f0a1bf311d9e3ca18cca411694debc27 (patch) | |
tree | 5b7abe73e7c40bbaf6985f7e5dd88bb939f7ca12 /numpy/distutils/command/scons.py | |
parent | d4eb8733f75565c0cff0202a9d818ce4d92df985 (diff) | |
download | numpy-3a3b5e09f0a1bf311d9e3ca18cca411694debc27.tar.gz |
Move import at the top of the file.
Diffstat (limited to 'numpy/distutils/command/scons.py')
-rw-r--r-- | numpy/distutils/command/scons.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/distutils/command/scons.py b/numpy/distutils/command/scons.py index 28fb5cb03..7f2cfde96 100644 --- a/numpy/distutils/command/scons.py +++ b/numpy/distutils/command/scons.py @@ -6,8 +6,8 @@ from distutils.errors import DistutilsPlatformError from distutils.errors import DistutilsExecError, DistutilsSetupError from numpy.distutils.command.build_ext import build_ext as old_build_ext -from numpy.distutils.ccompiler import CCompiler -from numpy.distutils.fcompiler import FCompiler +from numpy.distutils.ccompiler import CCompiler, new_compiler +from numpy.distutils.fcompiler import FCompiler, new_fcompiler from numpy.distutils.exec_command import find_executable from numpy.distutils import log from numpy.distutils.misc_util import is_bootstrapping, get_cmd @@ -317,7 +317,6 @@ class scons(old_build_ext): compiler_type = self.compiler if compiler_type == 'msvc': self._bypass_distutils_cc = True - from numpy.distutils.ccompiler import new_compiler try: distutils_compiler = new_compiler(compiler=compiler_type, verbose=self.verbose, @@ -334,10 +333,11 @@ class scons(old_build_ext): raise e else: self.scons_compiler = compiler_type + except Exception, e: + print type(e) # We do the same for the fortran compiler ... fcompiler_type = self.fcompiler - from numpy.distutils.fcompiler import new_fcompiler self.fcompiler = new_fcompiler(compiler = fcompiler_type, verbose = self.verbose, dry_run = self.dry_run, |