summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
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)