Merge "Fixes blocking issue on Windows"

This commit is contained in:
Jenkins 2014-03-21 00:49:33 +00:00 committed by Gerrit Code Review
commit 2aeb8da1dc
1 changed files with 3 additions and 1 deletions

View File

@ -87,9 +87,11 @@ def _pip_install(links, requires, root=None, option_dict=dict()):
for link in links:
cmd.append("-f")
cmd.append(link)
# NOTE(ociuhandu): popen on Windows does not accept unicode strings
_run_shell_command(
cmd + requires,
throw_on_error=True, buffer=False, env=dict(PIP_USE_WHEEL="true"))
throw_on_error=True, buffer=False, env=dict(PIP_USE_WHEEL=b"true"))
def _any_existing(file_list):