def handle_dependency():
 platform_name = platform.system()
 try:
  if (platform_name == 'Windows'):
   install_talib_for_windows()
  elif (platform_name == 'Linux'):
   install_talib_for_linux()
  elif (platform_name == 'Darwin'):
   install_talib_for_Darwin()
  else:
   print 'Failed to install ta-lib!'
 except Exception as e:
  print 'Failed to install ta-lib!'
  print e
 dependencies = create_dependencies(platform_name)
 if dependencies:
  print 'pip install -r requirements.txt'
  print dependencies
  result = os.popen('pip install -r requirements.txt').readlines()
  util.printCommandResult(result)

def handle_dependency ( ) : platform_name = platform . system ( ) try : if ( platform_name == 'Windows' ) : install_talib_for_windows ( ) elif ( platform_name == 'Linux' ) : install_talib_for_linux ( ) elif ( platform_name == 'Darwin' ) : install_talib_for_Darwin ( ) else : print 'Failed to install ta-lib!' except Exception as e : print 'Failed to install ta-lib!' print e dependencies = create_dependencies ( platform_name ) if dependencies : print 'pip install -r requirements.txt' print dependencies result = os . popen ( 'pip install -r requirements.txt' ) . readlines ( ) util . printCommandResult ( result )
docstring for fn .