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

install dependencies

This commit is contained in:
Christopher Fenner
2025-09-04 12:06:29 +02:00
parent 2ae8f8e976
commit 310fce0202

View File

@@ -105,9 +105,16 @@ func runPythonBuild(config *pythonBuildOptions, telemetryData *telemetry.CustomD
}
func buildExecute(config *pythonBuildOptions, utils pythonBuildUtils, pipInstallFlags []string, virutalEnvironmentPathMap map[string]string) error {
pipInstallSetuptoolsFlags := append(pipInstallFlags, "setuptools")
if err := utils.RunExecutable(virutalEnvironmentPathMap["pip"], pipInstallSetuptoolsFlags...); err != nil {
return err
// pipInstallSetuptoolsFlags := append(pipInstallFlags, "setuptools")
// if err := utils.RunExecutable(virutalEnvironmentPathMap["pip"], pipInstallSetuptoolsFlags...); err != nil {
// return err
// }
if exists, _ := utils.FileExists(config.RequirementsFilePath); exists {
pipInstallRequirementsFlags := append(pipInstallFlags, "--requirement", config.RequirementsFilePath)
if err := utils.RunExecutable(virutalEnvironmentPathMap["pip"], pipInstallRequirementsFlags...); err != nil {
return err
}
}
var flags []string