From d4ea24a49b077407a991afc1475a61dbd5e19335 Mon Sep 17 00:00:00 2001 From: cookedm Date: Fri, 9 Jun 2006 09:45:56 +0000 Subject: Make system_info saner. * Add a get_output() method to the config command, which compiles, links, and runs a program, and returns the output from that program. * Also cleaned up some stuff. system_info uses log instead of print. --- numpy/distutils/ccompiler.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'numpy/distutils/ccompiler.py') diff --git a/numpy/distutils/ccompiler.py b/numpy/distutils/ccompiler.py index a631464e6..ad4e4fb54 100644 --- a/numpy/distutils/ccompiler.py +++ b/numpy/distutils/ccompiler.py @@ -81,14 +81,11 @@ def CCompiler_compile(self, sources, output_dir=None, macros=None, fcomp = getattr(self,'compiler_'+fc) if fcomp is None: continue - display.append("%s(%s) options: '%s'" % (os.path.basename(fcomp[0]), - fc, - ' '.join(fcomp[1:]))) + display.append("Fortran %s compiler: %s" % (fc, ' '.join(fcomp))) display = '\n'.join(display) else: ccomp = self.compiler_so - display = "%s options: '%s'" % (os.path.basename(ccomp[0]), - ' '.join(ccomp[1:])) + display = "C compiler: %s\n" % (' '.join(ccomp),) log.info(display) macros, objects, extra_postargs, pp_opts, build = \ self._setup_compile(output_dir, macros, include_dirs, sources, -- cgit v1.2.1