| 406 | } |
| 407 | |
| 408 | InstallResult PackageManager::install(const std::string& package) { |
| 409 | if (!ensure_venv()) |
| 410 | return {.error = "Failed to create venv"}; |
| 411 | |
| 412 | std::lock_guard lock(m_mutex); |
| 413 | LOG_INFO("Installing {}", package); |
| 414 | return execute_uv({"pip", "install", package, "--python", lfs::core::path_to_utf8(venv_python())}); |
| 415 | } |
| 416 | |
| 417 | InstallResult PackageManager::uninstall(const std::string& package) { |
| 418 | if (!ensure_venv()) |
no test coverage detected