Skip to content

Commit

Permalink
fixup! Factor elements in pip_utils.{hpp,cpp}
Browse files Browse the repository at this point in the history
  • Loading branch information
jjerphan committed Aug 29, 2024
1 parent 281fbf7 commit 4bc9e04
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions libmamba/src/api/pip_utils.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#include <fmt/color.h>
#include <fmt/format.h>
#include <fmt/ostream.h>
#include <fmt/ranges.h>
#include <reproc++/run.hpp>
#include <reproc/reproc.h>

#include "mamba/api/install.hpp"
#include "mamba/core/activation.hpp"
Expand Down Expand Up @@ -111,7 +117,7 @@ namespace mamba

command_args command = [&]
{
const auto maybe_command = get_other_pkg_mgr_command(
const auto maybe_command = get_pip_install_command(
pkg_mgr,
ctx.prefix_params.target_prefix.string(),
specs.path(),
Expand Down Expand Up @@ -155,7 +161,7 @@ namespace mamba
fmt::format("pip failed to {} packages", update ? "update" : "install")
);
}

return command;
}
}

#endif // MAMBA_PIP_UTILS_HPP

0 comments on commit 4bc9e04

Please sign in to comment.