Skip to content

Commit

Permalink
Disable warnings on pip upgrade without it set in PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
tnederlof committed Feb 16, 2023
1 parent 449b554 commit 77e8db6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/languages/installPython.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ func InstallPython(filepath string, osType string, pythonVersion string) error {
}

func UpgradePythonTools(pythonVersion string) error {
upgradeCommand := "/opt/python/" + pythonVersion + "/bin/pip install --upgrade pip setuptools wheel"
upgradeCommand := "/opt/python/" + pythonVersion + "/bin/pip install --upgrade --no-warn-script-location --disable-pip-version-check pip setuptools wheel"
err := system.RunCommand(upgradeCommand)
if err != nil {
return fmt.Errorf("issue upgrading pip, setuptools and wheel for Python: %w", err)
Expand Down

0 comments on commit 77e8db6

Please sign in to comment.