mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06:18 +03:00
Merge pull request #6261 from radarhere/stderr
Hide stderr from --keep-system-libs
This commit is contained in:
commit
e42d8b0890
4
setup.py
4
setup.py
|
@ -255,14 +255,16 @@ def _pkg_config(name):
|
|||
try:
|
||||
command_libs = [command, "--libs-only-L", name]
|
||||
command_cflags = [command, "--cflags-only-I", name]
|
||||
stderr = None
|
||||
if keep_system:
|
||||
command_libs.append("--keep-system-libs")
|
||||
command_cflags.append("--keep-system-cflags")
|
||||
stderr = subprocess.DEVNULL
|
||||
if not DEBUG:
|
||||
command_libs.append("--silence-errors")
|
||||
command_cflags.append("--silence-errors")
|
||||
libs = (
|
||||
subprocess.check_output(command_libs)
|
||||
subprocess.check_output(command_libs, stderr=stderr)
|
||||
.decode("utf8")
|
||||
.strip()
|
||||
.replace("-L", "")
|
||||
|
|
Loading…
Reference in New Issue
Block a user