Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
avoid the warning 'WARNING: pip is being invoked by an old script wra…
Browse files Browse the repository at this point in the history
…pper. This will fail in a future version of pip.' (#729)
  • Loading branch information
AlexanderWillner authored Jun 9, 2021
1 parent f39899c commit 33089eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/steps/generic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,12 +203,12 @@ pub fn run_pipx_update(run_type: RunType) -> Result<()> {
}

pub fn run_pip3_update(run_type: RunType) -> Result<()> {
let pip3 = utils::require("pip3")?;
let python3 = utils::require("python3")?;
print_separator("pip3");

run_type
.execute(&pip3)
.args(&["install", "--upgrade", "--user", "pip"])
.execute(&python3)
.args(&["-m", "pip", "install", "--upgrade", "--user", "pip"])
.check_run()
}

Expand Down

0 comments on commit 33089eb

Please sign in to comment.