From: Dmitry Kozlyuk Date: Mon, 25 Jan 2021 22:12:49 +0000 (+0300) Subject: buildtools: fix archive extraction for Python 3.5 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=a38eae8efae8a729c39b1dc85cab0325b27062b3;p=dpdk.git buildtools: fix archive extraction for Python 3.5 Python 3.5 subprocess.run() has no capture_output parameter. Use subprocess.PIPE available in all versions. Signed-off-by: Dmitry Kozlyuk --- diff --git a/buildtools/gen-pmdinfo-cfile.py b/buildtools/gen-pmdinfo-cfile.py index f1f289ffee..c60ecd7f6a 100644 --- a/buildtools/gen-pmdinfo-cfile.py +++ b/buildtools/gen-pmdinfo-cfile.py @@ -11,7 +11,7 @@ _, ar, archive, output, *pmdinfogen = sys.argv with tempfile.TemporaryDirectory() as temp: proc = subprocess.run( # Don't use "ar p", because its output is corrupted on Windows. - [ar, "xv", os.path.abspath(archive)], capture_output=True, check=True, cwd=temp + [ar, "xv", os.path.abspath(archive)], stdout=subprocess.PIPE, check=True, cwd=temp ) lines = proc.stdout.decode().splitlines() names = [line[len("x - ") :] for line in lines]