pass --python to "uv pip install"

This commit is contained in:
Denis Bilenko 2024-12-18 22:08:34 +01:00
parent e7b77eb8bc
commit 755b8de2b5
1 changed files with 2 additions and 2 deletions

View File

@ -60,10 +60,10 @@ func testDefaultPython(t *testing.T, pythonVersion string) {
testcli.PrepareReplacementsUser(t, replacements, *user)
}
tmpDir1 := pythontest.RequirePythonVENV(t, ctx, pythonVersion, true)
tmpDir1, pythonExe := pythontest.RequirePythonVENV(t, ctx, pythonVersion, true)
extras, ok := extraInstalls[pythonVersion]
if ok {
args := append([]string{"pip", "install"}, extras...)
args := append([]string{"pip", "install", "--python", pythonExe}, extras...)
testutil.RunCommand(t, "uv", args...)
}