mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-03 21:24:31 +03:00
Ensure that pkg-config paths are split by spaces
This commit is contained in:
parent
04cf5e2cfc
commit
a0492f7968
10
setup.py
10
setup.py
|
@ -264,19 +264,17 @@ def _pkg_config(name):
|
||||||
command_libs.append("--silence-errors")
|
command_libs.append("--silence-errors")
|
||||||
command_cflags.append("--silence-errors")
|
command_cflags.append("--silence-errors")
|
||||||
libs = re.split(
|
libs = re.split(
|
||||||
r"\s*-L",
|
r"(^|\s+)-L",
|
||||||
subprocess.check_output(command_libs, stderr=stderr)
|
subprocess.check_output(command_libs, stderr=stderr)
|
||||||
.decode("utf8")
|
.decode("utf8")
|
||||||
.strip(),
|
.strip(),
|
||||||
)
|
)[::2][1:]
|
||||||
libs.remove("")
|
|
||||||
cflags = re.split(
|
cflags = re.split(
|
||||||
r"\s*-I",
|
r"(^|\s+)-I",
|
||||||
subprocess.check_output(command_cflags, stderr=stderr)
|
subprocess.check_output(command_cflags, stderr=stderr)
|
||||||
.decode("utf8")
|
.decode("utf8")
|
||||||
.strip(),
|
.strip(),
|
||||||
)
|
)[::2][1:]
|
||||||
cflags.remove("")
|
|
||||||
return libs, cflags
|
return libs, cflags
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in New Issue
Block a user