Back to the boards
This commit is contained in:
parent
2eac580110
commit
178122d4f6
@ -41,22 +41,25 @@ void call(Map config = [:], Closure body) {
|
|||||||
|
|
||||||
withEnv(venvEnv) {
|
withEnv(venvEnv) {
|
||||||
if (runConfig.updatePip) {
|
if (runConfig.updatePip) {
|
||||||
updateCmd = "${venvPython} -m pip install --upgrade pip"
|
updateCmd = "${venvPython.join('/')} -m pip install --upgrade pip"
|
||||||
echo "Updating pip with (${updateCmd})"
|
echo "Updating pip with (${updateCmd})"
|
||||||
sh updateCmd
|
sh """
|
||||||
|
env
|
||||||
|
${updateCmd}
|
||||||
|
"""
|
||||||
}
|
}
|
||||||
if (runConfig.installPipTools) {
|
// if (runConfig.installPipTools) {
|
||||||
installCmd = "${venvPython} -m pip install pip-tools"
|
// installCmd = "${venvPython.join('/')} -m pip install pip-tools"
|
||||||
echo "Installing pip-tools with (${installCmd})"
|
// echo "Installing pip-tools with (${installCmd})"
|
||||||
sh installCmd
|
// sh installCmd
|
||||||
}
|
// }
|
||||||
if (fileExists(runConfig.requirementsFile)) {
|
// if (fileExists(runConfig.requirementsFile)) {
|
||||||
reqCmd = "pip-compile ${runConfig.requirementsFile}"
|
// reqCmd = "pip-compile ${runConfig.requirementsFile}"
|
||||||
echo "Collecting requirements with (${reqCmd})"
|
// echo "Collecting requirements with (${reqCmd})"
|
||||||
sh reqCmd
|
// sh reqCmd
|
||||||
}
|
// }
|
||||||
echo 'Executing closure...'
|
// echo 'Executing closure...'
|
||||||
body()
|
// body()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user