Skip to content

Commit fbebb7a

Browse files
committed
Fix is_managed check for upgradable Python installs
1 parent b27c2d1 commit fbebb7a

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

crates/uv-python/src/interpreter.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -292,11 +292,7 @@ impl Interpreter {
292292
return false;
293293
};
294294

295-
installations
296-
.find_all()
297-
.into_iter()
298-
.flatten()
299-
.any(|install| install.path() == self.sys_base_prefix)
295+
self.sys_base_prefix.starts_with(installations.root())
300296
}
301297

302298
/// Returns `Some` if the environment is externally managed, optionally including an error

0 commit comments

Comments
 (0)