From a8ac6cdca6d3322b6d406fa32d27c89ec488a9ee Mon Sep 17 00:00:00 2001 From: Gabriel Dugny Date: Sun, 31 Mar 2024 08:13:46 +0200 Subject: [PATCH] fix(python): install python when pip is disabled outside virtualenv (#1847) --- src/plugins/core/python.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/core/python.rs b/src/plugins/core/python.rs index 2f623a7de..17c742f13 100644 --- a/src/plugins/core/python.rs +++ b/src/plugins/core/python.rs @@ -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"); @@ -209,6 +210,7 @@ impl PythonPlugin { .arg("--upgrade") .arg("-r") .arg(packages_file) + .env("PIP_REQUIRE_VIRTUALENV", "false") .envs(config.env()?) .execute() }