diff --git a/src/vcpkg/tools.cpp b/src/vcpkg/tools.cpp index df5708e4b0..b0d30a463b 100644 --- a/src/vcpkg/tools.cpp +++ b/src/vcpkg/tools.cpp @@ -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 @@ -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