From 69a39461de4da2bfc0e6aeeff02c73c0972a8614 Mon Sep 17 00:00:00 2001 From: Mike Taves Date: Thu, 27 Oct 2022 10:19:42 +1300 Subject: MAINT: change subprocess arguments from Python>=3.7 --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index 449507334..a1e495832 100755 --- a/setup.py +++ b/setup.py @@ -219,8 +219,8 @@ def get_build_overrides(): return False # will print something like '4.2.1\n' - out = subprocess.run([cc, '-dumpversion'], stdout=subprocess.PIPE, - stderr=subprocess.PIPE, universal_newlines=True) + out = subprocess.run([cc, '-dumpversion'], + capture_output=True, text=True) # -std=c99 is default from this version on if _pep440.parse(out.stdout) >= _pep440.Version('5.0'): return False -- cgit v1.2.1