def depend_check(deps_name, *args):
 missing = []
 for dependency in args:
  try:
   __import__(dependency)
  except ImportError:
   missing.append(dependency)
 print(('-' * 80))
 if missing:
  print((red('You are missing the following %s dependencies:') % deps_name))
  for dep in missing:
   name = pkg_info_dict.get(dep, dep)
   print(' * ', name)
  print()
 else:
  print((blue('All %s dependencies installed!  You are good to go!\n') % deps_name))

def depend_check ( deps_name , * args ) : missing = [ ] for dependency in args : try : __import__ ( dependency ) except ImportError : missing . append ( dependency ) print ( ( '-' * 80 ) ) if missing : print ( ( red ( 'You are missing the following %s dependencies:' ) % deps_name ) ) for dep in missing : name = pkg_info_dict . get ( dep , dep ) print ( ' * ' , name ) print ( ) else : print ( ( blue ( 'All %s dependencies installed!  You are good to go!\n' ) % deps_name ) )
make sure a given dependency is installed .