summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct2
1 files changed, 1 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct
index f91cb35fe..260c025bd 100644
--- a/SConstruct
+++ b/SConstruct
@@ -91,7 +91,7 @@ def compare_versions(v1, v2):
if isinstance(v, (list,tuple)):
return v
elif isinstance(v, str):
- return map(int, v.split('.'))
+ return map(lambda x: int(re.match('\d+', x).group()), v.split('.'))
else:
raise TypeError