File tree Expand file tree Collapse file tree
buildSrc/src/main/groovy/org/apache/beam/gradle Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3174,9 +3174,13 @@ class BeamModulePlugin implements Plugin<Project> {
31743174 packages + = " ,${ extra} "
31753175 }
31763176
3177+ def pythonSdkDir = project. project(" :sdks:python" ). projectDir
3178+ def constraintsFile = " ${ pythonSdkDir} /constraints.txt"
3179+ def constraintFlag = project. file(constraintsFile). exists() ? " -c ${ constraintsFile} " : " "
3180+ def pipCmd = " . ${ project.ext.envdir} /bin/activate && pip install --pre --retries 10 ${ constraintFlag} ${ distTarBall} [${ packages} ]" . replaceAll(/ +/ , ' ' ). trim()
31773181 project. exec {
31783182 executable ' sh'
3179- args ' -c' , " . ${ project.ext.envdir } /bin/activate && pip install --pre --retries 10 ${ distTarBall } [ ${ packages } ] "
3183+ args ' -c' , pipCmd
31803184 }
31813185 }
31823186 }
You can’t perform that action at this time.
0 commit comments