def get_missing_reqs(dist, installed_dists):
 installed_names = set((d.project_name.lower() for d in installed_dists))
 missing_requirements = set()
 for requirement in dist.requires():
  if (requirement.project_name.lower() not in installed_names):
   missing_requirements.add(requirement)
   (yield requirement)

def get_missing_reqs ( dist , installed_dists ) : installed_names = set ( ( d . project_name . lower ( ) for d in installed_dists ) ) missing_requirements = set ( ) for requirement in dist . requires ( ) : if ( requirement . project_name . lower ( ) not in installed_names ) : missing_requirements . add ( requirement ) ( yield requirement )
return all of the requirements of dist that arent present in installed_dists .