From 8d0c124d16118731a96741ca9b461b1b4b244879 Mon Sep 17 00:00:00 2001 From: Roey Darwish Dror Date: Wed, 9 Jun 2021 16:06:28 +0300 Subject: [PATCH] Revert "avoid the warning 'WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.' (#729)" This reverts commit 33089ebbe965e44a0b185fc8d93415c7c951711d. --- src/steps/generic.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/steps/generic.rs b/src/steps/generic.rs index e7f06b04..3b110e64 100644 --- a/src/steps/generic.rs +++ b/src/steps/generic.rs @@ -203,12 +203,12 @@ pub fn run_pipx_update(run_type: RunType) -> Result<()> { } pub fn run_pip3_update(run_type: RunType) -> Result<()> { - let python3 = utils::require("python3")?; + let pip3 = utils::require("pip3")?; print_separator("pip3"); run_type - .execute(&python3) - .args(&["-m", "pip", "install", "--upgrade", "--user", "pip"]) + .execute(&pip3) + .args(&["install", "--upgrade", "--user", "pip"]) .check_run() }