diff options
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/distutils/fcompiler/gnu.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/numpy/distutils/fcompiler/gnu.py b/numpy/distutils/fcompiler/gnu.py index d8143328e..cdb6aef94 100644 --- a/numpy/distutils/fcompiler/gnu.py +++ b/numpy/distutils/fcompiler/gnu.py @@ -382,7 +382,13 @@ class Gnu95FCompiler(GnuFCompiler): def get_target(self): try: - output = subprocess.check_output(self.compiler_f77 + ['-v']) + p = subprocess.Popen( + self.compiler_f77 + ['-v'], + stdin=subprocess.PIPE, + stderr=subprocess.PIPE, + ) + stdout, stderr = p.communicate() + output = (stdout or b"") + (stderr or b"") except (OSError, subprocess.CalledProcessError): pass else: |