diff options
author | Pearu Peterson <pearu.peterson@gmail.com> | 2007-07-24 12:08:46 +0000 |
---|---|---|
committer | Pearu Peterson <pearu.peterson@gmail.com> | 2007-07-24 12:08:46 +0000 |
commit | 19713cf2a650d9ffa910ebeb5f15e8b24e7125ae (patch) | |
tree | 09cef8a02a77276b7c73fc06893d18b1d98f1eb6 /numpy/distutils/fcompiler/compaq.py | |
parent | eb12ad4a3656aafe1260e0a981bd5c0dc136de0c (diff) | |
download | numpy-19713cf2a650d9ffa910ebeb5f15e8b24e7125ae.tar.gz |
Diffstat (limited to 'numpy/distutils/fcompiler/compaq.py')
-rw-r--r-- | numpy/distutils/fcompiler/compaq.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/numpy/distutils/fcompiler/compaq.py b/numpy/distutils/fcompiler/compaq.py index b57f05192..972d0de99 100644 --- a/numpy/distutils/fcompiler/compaq.py +++ b/numpy/distutils/fcompiler/compaq.py @@ -5,6 +5,7 @@ import os import sys from numpy.distutils.fcompiler import FCompiler +from distutils.errors import DistutilsPlatformError compilers = ['CompaqFCompiler'] if os.name != 'posix': @@ -69,11 +70,16 @@ class CompaqVisualFCompiler(FCompiler): ar_exe = 'lib.exe' fc_exe = 'DF' + if sys.platform=='win32': from distutils.msvccompiler import MSVCCompiler - m = MSVCCompiler() - m.initialize() - ar_exe = m.lib + + try: + m = MSVCCompiler() + m.initialize() + ar_exe = m.lib + except DistutilsPlatformError, msg: + print 'Ignoring %s (one should fix me in fcompiler/compaq.py)' % (msg) executables = { 'version_cmd' : ['<F90>', "/what"], |