This commit is contained in:
Hugo 2018-12-26 14:05:01 +02:00 committed by GitHub
parent c2b3bd5635
commit c5f066d3f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -158,8 +158,18 @@ def _pkg_config(name):
if not DEBUG:
command_libs.append('--silence-errors')
command_cflags.append('--silence-errors')
libs = subprocess.check_output(command_libs).decode('utf8').strip().replace('-L', '')
cflags = subprocess.check_output(command_cflags).decode('utf8').strip().replace('-I', '')
libs = (
subprocess.check_output(command_libs)
.decode("utf8")
.strip()
.replace("-L", "")
)
cflags = (
subprocess.check_output(command_cflags)
.decode("utf8")
.strip()
.replace("-I", "")
)
return (libs, cflags)
except Exception:
pass