You've already forked sap-jenkins-library
mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-09-16 09:26:22 +02:00
update
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user