Merge pull request #7046 from radarhere/cflags_stderr

This commit is contained in:
Hugo van Kemenade 2023-03-31 17:18:22 +03:00 committed by GitHub
commit eba0245329
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: