summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJingbei Li <i@jingbei.li>2019-01-23 15:32:13 +0800
committerGitHub <noreply@github.com>2019-01-23 15:32:13 +0800
commit73de62ffe8aada29666c809d08825a362d9fb408 (patch)
tree4b14906c5cc5aa9afebd09ab9aca4d423bd1c2e9
parentf8058c81220565d0837a4331fbec7aa8dce5aaa9 (diff)
downloadnumpy-73de62ffe8aada29666c809d08825a362d9fb408.tar.gz
also match the stderr in get_version()
which used to fail for ifort
-rw-r--r--numpy/distutils/ccompiler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/distutils/ccompiler.py b/numpy/distutils/ccompiler.py
index 100d0d069..552b9566f 100644
--- a/numpy/distutils/ccompiler.py
+++ b/numpy/distutils/ccompiler.py
@@ -639,7 +639,7 @@ def CCompiler_get_version(self, force=False, ok_status=[0]):
return version
try:
- output = subprocess.check_output(version_cmd)
+ output = subprocess.check_output(version_cmd, stderr=subprocess.STDOUT)
except subprocess.CalledProcessError as exc:
output = exc.output
status = exc.returncode