build: replace capture_output with subprocess.PIPE to support Python3.5

This commit is contained in:
Gabriel Ferreira
2022-02-12 16:14:03 -03:00
parent 9fcdbd08d2
commit bf78fabecf

4
ns3
View File

@@ -659,7 +659,9 @@ def cmake_build(current_cmake_cache_folder, output, jobs, target=None, dry_run=F
)
if not dry_run:
if output is not None:
kwargs = {"capture_output": True}
kwargs = {"stdout": subprocess.PIPE,
"stderr": subprocess.PIPE
}
else:
kwargs = {"stdout": output}