Skip to content

Commit

Permalink
Log the python executable we are running
Browse files Browse the repository at this point in the history
  • Loading branch information
mmarchetti committed Oct 16, 2023
1 parent f785ac8 commit 9cab7dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/environment/python.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"}
Expand Down

0 comments on commit 9cab7dd

Please sign in to comment.