modules/python: Do not override link_args with None largs
None is not iterable so it would trigger a TypeError later when link_args are
passed on to CompilerArgs.extend_direct().
@@ -151,7 +151,7 @@ class PythonDependency(ExternalDependency):
largs = self.clib_compiler.find_library(libname, environment, libdirs)
self.is_found = largs is not None
-
+ if self.is_found:
self.link_args = largs
inc_paths = mesonlib.OrderedSet([
