1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-09-16 09:26:22 +02:00

adjust log messages

This commit is contained in:
Christopher Fenner
2025-09-12 10:04:09 +02:00
parent b0023b5eb1
commit ab19208772

View File

@@ -69,17 +69,17 @@ func runPythonBuild(config *pythonBuildOptions, telemetryData *telemetry.CustomD
}
if strings.HasSuffix(buildDescriptorFilePath, "pyproject.toml") {
// TOML file
// handle pyproject.toml file
if err := python.InstallProjectDependencies(utils.RunExecutable, python.Binary); err != nil {
return fmt.Errorf("Failed to install project dependencies: %w", err)
return fmt.Errorf("failed to install project dependencies: %w", err)
}
if err := python.Build(utils.RunExecutable, python.Binary, config.BuildFlags, config.SetupFlags); err != nil {
return fmt.Errorf("Failed to build python project: %w", err)
return fmt.Errorf("failed to build python project: %w", err)
}
} else {
// legacy handling setup.py
// handle legacy setup.py file
if err := buildExecute(config, utils, virutalEnvironmentPathMap); err != nil {
return fmt.Errorf("Python build failed with error: %w", err)
return fmt.Errorf("failed to build python project: %w", err)
}
}