def _load_plugins_from_packages():
 for entrypoint in pkg_resources.iter_entry_points(u'FlexGet.plugins'):
  try:
   plugin_module = entrypoint.load()
  except DependencyError as e:
   if e.has_message():
    msg = e.message
   else:
    msg = (u'Plugin `%s` requires `%s` to load.', (e.issued_by or entrypoint.module_name), (e.missing or u'N/A'))
   if (not e.silent):
    log.warning(msg)
   else:
    log.debug(msg)
  except ImportError:
   log.critical(u'Plugin `%s` failed to import dependencies', entrypoint.module_name, exc_info=True)
  except Exception:
   log.critical(u'Exception while loading plugin %s', entrypoint.module_name, exc_info=True)
   raise
  else:
   log.trace(u'Loaded packaged module %s from %s', entrypoint.module_name, plugin_module.__file__)
 _check_phase_queue()

def _load_plugins_from_packages ( ) : for entrypoint in pkg_resources . iter_entry_points ( u'FlexGet.plugins' ) : try : plugin_module = entrypoint . load ( ) except DependencyError as e : if e . has_message ( ) : msg = e . message else : msg = ( u'Plugin `%s` requires `%s` to load.' , ( e . issued_by or entrypoint . module_name ) , ( e . missing or u'N/A' ) ) if ( not e . silent ) : log . warning ( msg ) else : log . debug ( msg ) except ImportError : log . critical ( u'Plugin `%s` failed to import dependencies' , entrypoint . module_name , exc_info = True ) except Exception : log . critical ( u'Exception while loading plugin %s' , entrypoint . module_name , exc_info = True ) raise else : log . trace ( u'Loaded packaged module %s from %s' , entrypoint . module_name , plugin_module . __file__ ) _check_phase_queue ( )
load plugins installed via pip .