Fix "TypeError: 'NoneType' object is not iterable" for PPC and CRUX

This commit is contained in:
Hugo 2018-01-11 12:45:52 +02:00
parent d1257a0a38
commit 8edbc79e7f

View File

@ -368,7 +368,7 @@ class pil_build_ext(build_ext):
for platform_ in arch_tp:
dirs = libdirs.get(platform_, None)
if not platform_:
if not dirs:
continue
for path in dirs:
_add_directory(library_dirs, path)