From 079319fc74aeba5ae7c5d16f25208f260b868c53 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Wed, 26 Dec 2018 23:02:53 +1100 Subject: [PATCH] Line too long --- setup.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 74d0083ca..00eb62b00 100755 --- a/setup.py +++ b/setup.py @@ -158,8 +158,13 @@ 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() + libs = libs.replace('-L', '') + + cflags = subprocess.check_output(command_cflags).decode('utf8').strip() + cflags = cflags.replace('-I', '') + return (libs, cflags) except Exception: pass