Skip to content

Commit dfa8dd1

Browse files
uninstall through uv first
1 parent 3936db7 commit dfa8dd1

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

binaries/cli/src/lib.rs

+16-1
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,22 @@ fn run(args: Args) -> eyre::Result<()> {
630630
println!("Uninstalling Dora CLI...");
631631
#[cfg(feature = "python")]
632632
{
633-
println!("Detected pip installation, running pip uninstall...");
633+
println!("Detected Python installation...");
634+
635+
// Try uv pip uninstall first
636+
let uv_status = std::process::Command::new("uv")
637+
.args(["pip", "uninstall", "dora-rs-cli"])
638+
.status();
639+
640+
if let Ok(status) = uv_status {
641+
if status.success() {
642+
println!("Dora CLI has been successfully uninstalled via uv pip.");
643+
return Ok(());
644+
}
645+
}
646+
647+
// Fall back to regular pip uninstall
648+
println!("Trying with pip...");
634649
let status = std::process::Command::new("pip")
635650
.args(["uninstall", "-y", "dora-rs-cli"])
636651
.status()

0 commit comments

Comments
 (0)