mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 18:26:17 +03:00
Flake8
This commit is contained in:
parent
c2b3bd5635
commit
c5f066d3f6
14
setup.py
14
setup.py
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user