def METHOD_NAME(self):
    pkg_dir, dist = self.create_dist()
    cmd = build_clib(dist)
    class FakeCompiler:
        def compile(*args, **kw):
            pass
        create_static_lib = compile
    cmd.compiler = FakeCompiler()
    # build_libraries is also doing a bit of typoe checking
    lib = [('name', {'sources': 'notvalid'})]
    self.assertRaises(DistutilsSetupError, cmd.build_libraries, lib)
    lib = [('name', {'sources': list()})]
    cmd.build_libraries(lib)
    lib = [('name', {'sources': tuple()})]
    cmd.build_libraries(lib)