1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-09-16 09:26:22 +02:00
This commit is contained in:
Christopher Fenner
2025-09-12 12:13:28 +02:00
parent 880407cc99
commit 7507bfc2dc

View File

@@ -69,16 +69,16 @@ func runPythonBuild(config *pythonBuildOptions, telemetryData *telemetry.CustomD
}
if strings.HasSuffix(buildDescriptorFilePath, "pyproject.toml") {
if err := python.UpgradePip(utils.RunExecutable, python.Binary); err != nil {
// handle pyproject.toml file
if err := python.InstallPip(utils.RunExecutable); err != nil {
return fmt.Errorf("failed to upgrade pip: %w", err)
}
if err := python.InstallBuildModule(utils.RunExecutable, python.Binary); err != nil {
return fmt.Errorf("failed to install build module: %w", err)
}
// handle pyproject.toml file
if err := python.InstallProjectDependencies(utils.RunExecutable, python.Binary); err != nil {
if err := python.InstallProjectDependencies(utils.RunExecutable); err != nil {
return fmt.Errorf("failed to install project dependencies: %w", err)
}
if err := python.InstallBuild(utils.RunExecutable); err != nil {
return fmt.Errorf("failed to install build module: %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)
}