diff options
author | Pearu Peterson <pearu.peterson@gmail.com> | 2007-06-01 13:36:59 +0000 |
---|---|---|
committer | Pearu Peterson <pearu.peterson@gmail.com> | 2007-06-01 13:36:59 +0000 |
commit | 47dfa7030fa2166b1010ad7d635533a2786a03b8 (patch) | |
tree | 4c373c0f244e093631632f75c67e25933f506907 /numpy/distutils/ccompiler.py | |
parent | d91fcb0515ae875dfbafd5a94d4845725b3f681e (diff) | |
download | numpy-47dfa7030fa2166b1010ad7d635533a2786a03b8.tar.gz |
Fixed detecting fortran compilers under windows.
Diffstat (limited to 'numpy/distutils/ccompiler.py')
-rw-r--r-- | numpy/distutils/ccompiler.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/numpy/distutils/ccompiler.py b/numpy/distutils/ccompiler.py index 61a30336a..bb11bb299 100644 --- a/numpy/distutils/ccompiler.py +++ b/numpy/distutils/ccompiler.py @@ -255,11 +255,12 @@ def CCompiler_get_version(self, force=0, ok_status=[0]): """ Compiler version. Returns None if compiler is not available. """ if not force and hasattr(self,'version'): return self.version + self.find_executables() try: version_cmd = self.version_cmd except AttributeError: return None - if not version_cmd or not version_cmd[0] or None in version_cmd: + if not version_cmd or not version_cmd[0]: return None cmd = ' '.join(version_cmd) try: @@ -277,6 +278,7 @@ def CCompiler_get_version(self, force=0, ok_status=[0]): return version status, output = exec_command(cmd,use_tee=0) + version = None if status in ok_status: version = matcher(output) |