Fixes blocking issue on Windows
On Windows, environment variables can not be unicode. Change-Id: I8c7fd7627d7f733e0db8690a39e7128b7fe2ebcf Closes-bug: #1294246
This commit is contained in:
parent
6ffff7c957
commit
af4c193250
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue