Skip to content

Commit

Permalink
Fix Py3 failures when installing MSVC dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
saschanaz committed Jun 20, 2020
1 parent 0b61cfc commit 74e0d02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion python/servo/bootstrap.py
Expand Up @@ -271,7 +271,8 @@ def check_cmake(version):
cmake_path = find_executable("cmake")
if cmake_path:
cmake = subprocess.Popen([cmake_path, "--version"], stdout=PIPE)
cmake_version = cmake.stdout.read().splitlines()[0].replace("cmake version ", "")
cmake_version_output = six.ensure_str(cmake.stdout.read()).splitlines()[0]
cmake_version = cmake_version_output.replace("cmake version ", "")
if LooseVersion(cmake_version) >= LooseVersion(version):
return True
return False
Expand Down
2 changes: 1 addition & 1 deletion python/servo/command_base.py
Expand Up @@ -216,7 +216,7 @@ def is_linux():
def append_to_path_env(string, env, name):
variable = ""
if name in env:
variable = env[name]
variable = six.ensure_str(env[name])
if len(variable) > 0:
variable += os.pathsep
variable += string
Expand Down

0 comments on commit 74e0d02

Please sign in to comment.