Update setup.py

Fixes lint errors

Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
Meithal 2020-06-09 13:35:41 +02:00 committed by GitHub
parent 8c5f07f5ea
commit fd4bfc7647
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -391,9 +391,12 @@ class pil_build_ext(build_ext):
_dbg("Looking for `%s` using pkg-config." % lib_name)
root = pkg_config(lib_name)
winbuil_root = os.path.join('.', 'winbuild', 'build')
if root is None and os.path.isdir(winbuil_root):
root = os.path.join(winbuil_root, 'lib'), os.path.join(winbuil_root, 'inc')
winbuild_root = os.path.join(".", "winbuild", "build")
if root is None and os.path.isdir(winbuild_root):
root = (
os.path.join(winbuild_root, "lib"),
os.path.join(winbuild_root, "inc")
)
if isinstance(root, tuple):
lib_root, include_root = root