def is_automated():
 is_automated = False
 try:
  dist_dir_i = sys.argv.index('--dist-dir')
 except ValueError:
  dist_dir_i = None
 if (dist_dir_i is not None):
  dist_dir = sys.argv[(dist_dir_i + 1)]
  if ('egg-dist-tmp' in dist_dir):
   is_automated = True
 if ((sys.argv in [['-c', 'develop', '--no-deps'], ['--no-deps', '-c', 'develop'], ['-c', 'egg_info']]) or ('pip-egg-info' in sys.argv) or (sys.argv[:3] == ['-c', 'install', '--record']) or (sys.argv[:4] == ['-c', 'install', '--single-version-externally-managed', '--record'])):
  is_automated = True
 return is_automated

def is_automated ( ) : is_automated = False try : dist_dir_i = sys . argv . index ( '--dist-dir' ) except ValueError : dist_dir_i = None if ( dist_dir_i is not None ) : dist_dir = sys . argv [ ( dist_dir_i + 1 ) ] if ( 'egg-dist-tmp' in dist_dir ) : is_automated = True if ( ( sys . argv in [ [ '-c' , 'develop' , '--no-deps' ] , [ '--no-deps' , '-c' , 'develop' ] , [ '-c' , 'egg_info' ] ] ) or ( 'pip-egg-info' in sys . argv ) or ( sys . argv [ : 3 ] == [ '-c' , 'install' , '--record' ] ) or ( sys . argv [ : 4 ] == [ '-c' , 'install' , '--single-version-externally-managed' , '--record' ] ) ) : is_automated = True return is_automated
check for installation with easy_install or pip .