Skip to content

Commit

Permalink
Merge pull request #7046 from radarhere/cflags_stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Mar 31, 2023
2 parents 20a7ed2 + 17a0a2e commit eba0245
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit eba0245

Please sign in to comment.