Skip to content
Permalink
Browse files

Bootstrap: Fix cmake version parsing

  • Loading branch information
UK992 committed May 9, 2017
1 parent 66cfea6 commit a79dfd054f9d011b33dff2e3c6da25d05dc5b569
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/servo/bootstrap.py
@@ -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
@@ -187,7 +187,7 @@ def check_cmake(version):
if cmake_path:
cmake = subprocess.Popen([cmake_path, "--version"], stdout=PIPE)
cmake_version = cmake.stdout.read().splitlines()[0].replace("cmake version ", "")
if StrictVersion(cmake_version) >= StrictVersion(version):
if LooseVersion(cmake_version) >= LooseVersion(version):
return True
return False

0 comments on commit a79dfd0

Please sign in to comment.
You can’t perform that action at this time.