From: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com> To: dev@dpdk.org Cc: Ali Alnubani <alialnu@nvidia.com>, Bruce Richardson <bruce.richardson@intel.com>, Thomas Monjalon <thomas@monjalon.net>, Dmitry Kozlyuk <dmitry.kozliuk@gmail.com> Subject: [dpdk-dev] [PATCH 2/3] buildtools: fix archive extraction for Python 3.5 Date: Tue, 26 Jan 2021 01:12:49 +0300 Message-ID: <20210125221251.19147-3-dmitry.kozliuk@gmail.com> (raw) In-Reply-To: <20210125221251.19147-1-dmitry.kozliuk@gmail.com> Python 3.5 subprocess.run() has no capture_output parameter. Use subprocess.PIPE available in all versions. Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com> --- To be squashed with caaca1ec6 ("buildtools: support object file extraction for Windows"). buildtools/gen-pmdinfo-cfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildtools/gen-pmdinfo-cfile.py b/buildtools/gen-pmdinfo-cfile.py index f1f289ffe..c60ecd7f6 100644 --- a/buildtools/gen-pmdinfo-cfile.py +++ b/buildtools/gen-pmdinfo-cfile.py @@ -11,7 +11,7 @@ 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] -- 2.29.2
next prev parent reply other threads:[~2021-01-25 22:13 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-01-25 22:12 [dpdk-dev] [PATCH 0/3] pmdinfogen fixes Dmitry Kozlyuk 2021-01-25 22:12 ` [dpdk-dev] [PATCH 1/3] pmdinfogen: fix build with pyelftools < 0.24 Dmitry Kozlyuk 2021-01-25 22:12 ` Dmitry Kozlyuk [this message] 2021-01-25 22:12 ` [dpdk-dev] [PATCH 3/3] buildtools: use build subdirectory for temporary files Dmitry Kozlyuk 2021-01-25 23:44 ` [dpdk-dev] [PATCH 0/3] pmdinfogen fixes Thomas Monjalon
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20210125221251.19147-3-dmitry.kozliuk@gmail.com \ --to=dmitry.kozliuk@gmail.com \ --cc=alialnu@nvidia.com \ --cc=bruce.richardson@intel.com \ --cc=dev@dpdk.org \ --cc=thomas@monjalon.net \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
DPDK patches and discussions This inbox may be cloned and mirrored by anyone: git clone --mirror https://inbox.dpdk.org/dev/0 dev/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 dev dev/ https://inbox.dpdk.org/dev \ dev@dpdk.org public-inbox-index dev Example config snippet for mirrors. Newsgroup available over NNTP: nntp://inbox.dpdk.org/inbox.dpdk.dev AGPL code for this site: git clone https://public-inbox.org/public-inbox.git