From d021e7ddc87864fbc2ff7cd4d14c6217500c8e50 Mon Sep 17 00:00:00 2001 From: Renan Santos Date: Sat, 2 Mar 2024 15:17:53 -0300 Subject: [PATCH] fix: pip editable installs getting uninstalled (#902) --- src/install_pypi.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/install_pypi.rs b/src/install_pypi.rs index a6f105fbd..2bed5989b 100644 --- a/src/install_pypi.rs +++ b/src/install_pypi.rs @@ -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![];