From bf78fabecf22167dabfc771c71fd4ef7b9cd0a78 Mon Sep 17 00:00:00 2001 From: Gabriel Ferreira Date: Sat, 12 Feb 2022 16:14:03 -0300 Subject: [PATCH] build: replace capture_output with subprocess.PIPE to support Python3.5 --- ns3 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ns3 b/ns3 index 382503f6f..f1ad1f0ac 100755 --- a/ns3 +++ b/ns3 @@ -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}