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 17:36:05 +02:00
parent fa6e0f5cbc
commit 24baf11d2f

View File

@@ -2,6 +2,7 @@ package cmd
import (
"fmt"
"os"
"path/filepath"
"strings"
@@ -60,6 +61,13 @@ func runPythonBuild(config *pythonBuildOptions, telemetryData *telemetry.CustomD
if err := createVirtualEnvironment(utils, config, virtualEnvPathMap); err != nil {
return err
}
workDir, err := os.Getwd()
if err != nil {
return err
}
utils.AppendEnv([]string{
fmt.Sprintf("VIRTUAL_ENV=%s", filepath.Join(workDir, config.VirutalEnvironmentName)),
})
//TODO: use a defer func to cleanup the virtual environment
// check project descriptor