Skip to content

Commit

Permalink
fixup rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
Klaim committed Aug 10, 2022
1 parent 9b733f1 commit 7507a2c
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions libmamba/src/api/install.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,14 @@ namespace mamba
using command_args = std::vector<std::string>;

tl::expected<command_args, std::runtime_error> get_other_pkg_mgr_install_instructions(
const std::string& name, const std::string& target_prefix, fs::path spec_file)
const std::string& name, const std::string& target_prefix, const fs::u8path& spec_file)
{
const auto get_python_path
= [&] { return env::which("python", get_path_dirs(target_prefix)).string(); };

const std::unordered_map<std::string, command_args> other_pkg_mgr_install_instructions{
{ "pip",
{ get_python_path(),
"-m",
"pip",
"install",
"-r",
spec_file.string(),
"--no-input" } }
{ get_python_path(), "-m", "pip", "install", "-r", spec_file, "--no-input" } }
};

auto found_it = other_pkg_mgr_install_instructions.find(name);
Expand Down

0 comments on commit 7507a2c

Please sign in to comment.