return s
elif isinstance(srcLoc,tuple):
dirGitLoc=os.path.splitext(os.path.basename(srcLoc[0]))[0]
- p=subprocess.Popen(["git","rev-parse","--verify","HEAD"],cwd=dirGitLoc)
+ p=subprocess.Popen(["git","rev-parse","--verify","HEAD"],cwd=dirGitLoc,stdout=subprocess.PIPE,stderr=subprocess.PIPE)
p_out,p_err=p.communicate()
if p.returncode != 0:
msg = "Error in __getCurrentVersion\n" + p_err
return myInstallDir
myCmd=[os.path.join(srcDir,"configure"),"--prefix=%s"%(myInstallDir)]+addCfgParam
print "Command: ", " ".join(myCmd)
- p=subprocess.Popen(myCmd,cwd=myBuildDir,env=computeEnv(envAcc))
+ p=subprocess.Popen(myCmd,cwd=myBuildDir,env=computeEnv(envAcc),stdout=subprocess.PIPE,stderr=subprocess.PIPE)
__compilePart1(p,myBuildDir)
__compilePart2(topSrcDir,pattern,config,envAcc,myBuildDir,splitInstall)
return myInstallDir
return myInstallDir
myCmd=["cmake","-DCMAKE_INSTALL_PREFIX=%s"%(myInstallDir)]+addCfgParam+[srcDir]
print(" ".join(myCmd))
- p=subprocess.Popen(myCmd,cwd=myBuildDir,env=computeEnv(envAcc))
+ p=subprocess.Popen(myCmd,cwd=myBuildDir,env=computeEnv(envAcc),stdout=subprocess.PIPE,stderr=subprocess.PIPE)
__compilePart1(p,myBuildDir)
__compilePart2(topSrcDir,pattern,config,envAcc,myBuildDir,False)
return myInstallDir