Skip to content

Commit

Permalink
Add acquire instructions on MacOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
BillyONeal committed Jun 8, 2022
1 parent 480e2f0 commit 07de006
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/vcpkg/tools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,15 @@ namespace vcpkg
return extract_prefixed_nonwhitespace("Python ", Tools::PYTHON3, std::move(output), exe_path);
});
}

virtual void add_system_package_info(LocalizedString& out) const override
{
#if defined(__APPLE__)
out.append_raw(" ").append(msgInstallWithSystemManagerPkg, msg::command_line = "brew install python3");
#else
out.append_raw(" ").append(msgInstallWithSystemManagerPkg, msg::command_line = "sudo apt install python3");
#endif
}
};

struct Python3FullProvider : Python3Provider
Expand All @@ -627,6 +636,16 @@ namespace vcpkg
Tools::PYTHON3)
.has_value();
}

virtual void add_system_package_info(LocalizedString& out) const override
{
#if defined(__APPLE__)
out.append_raw(" ").append(msgInstallWithSystemManagerPkg, msg::command_line = "brew install python3");
#else
out.append_raw(" ").append(msgInstallWithSystemManagerPkg,
msg::command_line = "sudo apt install python3-virtualenv");
#endif
}
};

struct ToolCacheImpl final : ToolCache
Expand Down

0 comments on commit 07de006

Please sign in to comment.