diff options
author | cookedm <cookedm@localhost> | 2006-06-09 09:45:56 +0000 |
---|---|---|
committer | cookedm <cookedm@localhost> | 2006-06-09 09:45:56 +0000 |
commit | d4ea24a49b077407a991afc1475a61dbd5e19335 (patch) | |
tree | f8875c0eaddcd9e69a8a82dbae5c3b2dcb052382 /numpy/distutils/ccompiler.py | |
parent | 79ab0f4ba033372dc568a115b52fa013f7433495 (diff) | |
download | numpy-d4ea24a49b077407a991afc1475a61dbd5e19335.tar.gz |
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.
Diffstat (limited to 'numpy/distutils/ccompiler.py')
-rw-r--r-- | numpy/distutils/ccompiler.py | 7 |
1 files changed, 2 insertions, 5 deletions
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, |