mirror of
https://github.com/servo/servo.git
synced 2025-06-28 19:13:41 +01:00
Fix Python 3 support in mach’s ensure_bootstrapped
This commit is contained in:
parent
895cf695c4
commit
1d3fdc471e
1 changed files with 2 additions and 2 deletions
|
@ -1008,14 +1008,14 @@ install them, let us know by filing a bug!")
|
|||
self.ensure_rustup_version()
|
||||
toolchain = self.rust_toolchain()
|
||||
|
||||
if toolchain not in check_output(["rustup", "toolchain", "list"]):
|
||||
if toolchain.encode("utf-8") not in check_output(["rustup", "toolchain", "list"]):
|
||||
check_call(["rustup", "toolchain", "install", "--profile", "minimal", toolchain])
|
||||
|
||||
installed = check_output(
|
||||
["rustup", "component", "list", "--installed", "--toolchain", toolchain]
|
||||
)
|
||||
for component in set(rustup_components or []) | {"rustc-dev"}:
|
||||
if component not in installed:
|
||||
if component.encode("utf-8") not in installed:
|
||||
check_call(["rustup", "component", "add", "--toolchain", toolchain, component])
|
||||
|
||||
if target and "uwp" not in target and target not in check_output(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue