diff --git a/setup.py b/setup.py index 9f38170b564..07d6c66d655 100755 --- a/setup.py +++ b/setup.py @@ -273,9 +273,7 @@ def _pkg_config(name): )[::2][1:] cflags = re.split( r"(^|\s+)-I", - subprocess.check_output(command_cflags, stderr=stderr) - .decode("utf8") - .strip(), + subprocess.check_output(command_cflags).decode("utf8").strip(), )[::2][1:] return libs, cflags except Exception: