Skip to content

Commit

Permalink
fix: pip editable installs getting uninstalled (#902)
Browse files Browse the repository at this point in the history
  • Loading branch information
renan-r-santos authored Mar 2, 2024
1 parent dd1a272 commit d021e7d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/install_pypi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,11 @@ fn whats_the_plan<'a>(
let mut required_map: std::collections::HashMap<&PackageName, &PypiPackageData> =
required.iter().map(|(pkg, _)| (&pkg.name, pkg)).collect();

// Filter out conda packages
// Ignore packages without an installer
// Filter out packages not installed by uv
let installed = installed.iter().filter(|dist| {
dist.installer()
.unwrap_or_default()
.is_some_and(|installer| installer != "conda")
.is_some_and(|installer| installer == "uv")
});

let mut extraneous = vec![];
Expand Down

0 comments on commit d021e7d

Please sign in to comment.