summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorPearu Peterson <pearu.peterson@gmail.com>2010-03-17 21:04:15 +0000
committerPearu Peterson <pearu.peterson@gmail.com>2010-03-17 21:04:15 +0000
commite9702d79dced193816b6be5d40711ca3bd3fb7d6 (patch)
tree4babb0011bab8db74f5fcf823749cdf116cde51a /numpy
parente3be228ef31edbc51fef85bcd9ad8db6fdd73add (diff)
downloadnumpy-e9702d79dced193816b6be5d40711ca3bd3fb7d6.tar.gz
Fix version matcher for cases where version string appears in second line (Intel Visual Compiler, IA-32, Version 11.1)
Diffstat (limited to 'numpy')
-rw-r--r--numpy/distutils/ccompiler.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/distutils/ccompiler.py b/numpy/distutils/ccompiler.py
index 1b5c804da..0889d11a0 100644
--- a/numpy/distutils/ccompiler.py
+++ b/numpy/distutils/ccompiler.py
@@ -400,6 +400,9 @@ def simple_version_match(pat=r'[-.\d]+', ignore='', start=''):
"""
def matcher(self, version_string):
+ # version string may appear in the second line, so getting rid
+ # of new lines:
+ version_string = version_string.replace('\n',' ')
pos = 0
if start:
m = re.match(start, version_string)