From e2a45c21563b5bc3ffe4a78b9165a74f97c53e1a Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=A9dric=20Aguerre?= Date: Tue, 18 Oct 2016 18:44:24 +0200 Subject: [PATCH] restore subprocess pipes for build --- scripts/salome_compile.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/salome_compile.py b/scripts/salome_compile.py index 418e53b..4b837d2 100644 --- a/scripts/salome_compile.py +++ b/scripts/salome_compile.py @@ -81,7 +81,7 @@ def __compilePart2(topSrcDir,pattern,config,envAcc,buildDir,splitInstall): print("make in %s"%(buildDir)) paraCompFlag = config["paraCompFlag"] if not splitInstall: - p=subprocess.Popen(["make",paraCompFlag,"install"],cwd=buildDir,env=computeEnv(envAcc)) + p=subprocess.Popen(["make",paraCompFlag,"install"],cwd=buildDir,env=computeEnv(envAcc),stdout=subprocess.PIPE,stderr=subprocess.PIPE) a,b=p.communicate() f=file(os.path.join(buildDir,compOut),"w") ; f.write(a) ; f.flush() f=file(os.path.join(buildDir,compErr),"w") ; f.write(b) ; f.flush() @@ -89,14 +89,14 @@ def __compilePart2(topSrcDir,pattern,config,envAcc,buildDir,splitInstall): msg = "Error in build step. See details in %s and %s\n"%(os.path.join(buildDir,compOut), os.path.join(buildDir,compErr)) raise Exception(msg) else: - p=subprocess.Popen(["make",paraCompFlag],cwd=buildDir,env=computeEnv(envAcc)) + p=subprocess.Popen(["make",paraCompFlag],cwd=buildDir,env=computeEnv(envAcc),stdout=subprocess.PIPE,stderr=subprocess.PIPE) a0,b0=p.communicate() f=file(os.path.join(buildDir,compOut),"w") ; f.write(a0) ; f.flush() f=file(os.path.join(buildDir,compErr),"w") ; f.write(b0) ; f.flush() if p.returncode != 0: msg = "Error in build step. See details in %s and %s\n"%(os.path.join(buildDir,compOut), os.path.join(buildDir,compErr)) raise Exception(msg) - p=subprocess.Popen(["make",paraCompFlag,"install"],cwd=buildDir,env=computeEnv(envAcc)) + p=subprocess.Popen(["make",paraCompFlag,"install"],cwd=buildDir,env=computeEnv(envAcc),stdout=subprocess.PIPE,stderr=subprocess.PIPE) a1,b1=p.communicate() f=file(os.path.join(buildDir,compOut),"w") ; f.write(a0+a1) ; f.flush() f=file(os.path.join(buildDir,compErr),"w") ; f.write(b0+b1) ; f.flush() -- 2.39.2