From 9cab7dd866959fef01b491d6bf88a5a1547f9de9 Mon Sep 17 00:00:00 2001 From: Michael Marchetti Date: Mon, 16 Oct 2023 13:44:36 -0400 Subject: [PATCH] Log the python executable we are running --- internal/environment/python.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/environment/python.go b/internal/environment/python.go index 59fb6516f..d16e56e23 100644 --- a/internal/environment/python.go +++ b/internal/environment/python.go @@ -83,6 +83,7 @@ func (i *defaultPythonInspector) GetPythonVersion() (string, error) { if err != nil { return "", err } + i.log.Info("Running Python", "python", pythonExecutable) args := []string{ `-E`, // ignore python-specific environment variables `-c`, // execute the next argument as python code @@ -111,6 +112,7 @@ func (i *defaultPythonInspector) GetPythonRequirements() ([]byte, error) { if err != nil { return nil, err } + i.log.Info("Running Python", "python", pythonExecutable) source := fmt.Sprintf("'%s -m pip freeze'", pythonExecutable) i.log.Info("Using Python packages", "source", source) args := []string{"-m", "pip", "freeze"}