Skip to content


Browse files Browse the repository at this point in the history
Bootstrap: Fix cmake version parsing
  • Loading branch information
UK992 committed May 9, 2017
1 parent 66cfea6 commit a79dfd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/servo/
Expand Up @@ -5,7 +5,7 @@
from __future__ import absolute_import, print_function

from distutils.spawn import find_executable
from distutils.version import StrictVersion
from distutils.version import LooseVersion
import json
import os
import platform
Expand Down Expand Up @@ -187,7 +187,7 @@ def check_cmake(version):
if cmake_path:
cmake = subprocess.Popen([cmake_path, "--version"], stdout=PIPE)
cmake_version =[0].replace("cmake version ", "")
if StrictVersion(cmake_version) >= StrictVersion(version):
if LooseVersion(cmake_version) >= LooseVersion(version):
return True
return False

Expand Down

0 comments on commit a79dfd0

Please sign in to comment.