Skip to content

Commit

Permalink
fix(python): install python when pip is disabled outside virtualenv (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
GabDug authored Mar 31, 2024
1 parent 4113012 commit a8ac6cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/plugins/core/python.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ impl PythonPlugin {
.with_pr(ctx.pr.as_ref())
.arg(ctx.tv.version.as_str())
.arg(&ctx.tv.install_path())
.env("PIP_REQUIRE_VIRTUALENV", "false")
.envs(config.env()?);
if settings.verbose {
cmd = cmd.arg("--verbose");
Expand Down Expand Up @@ -209,6 +210,7 @@ impl PythonPlugin {
.arg("--upgrade")
.arg("-r")
.arg(packages_file)
.env("PIP_REQUIRE_VIRTUALENV", "false")
.envs(config.env()?)
.execute()
}
Expand Down

0 comments on commit a8ac6cd

Please sign in to comment.