@task
def addon_requirements(ctx):
 for directory in os.listdir(settings.ADDON_PATH):
  path = os.path.join(settings.ADDON_PATH, directory)
  requirements_file = os.path.join(path, 'requirements.txt')
  if (os.path.isdir(path) and os.path.isfile(requirements_file)):
   print 'Installing requirements for {0}'.format(directory)
   ctx.run(pip_install(requirements_file, constraints_file=CONSTRAINTS_PATH), echo=True)
 print 'Finished installing addon requirements'

@ task def addon_requirements ( ctx ) : for directory in os . listdir ( settings . ADDON_PATH ) : path = os . path . join ( settings . ADDON_PATH , directory ) requirements_file = os . path . join ( path , 'requirements.txt' ) if ( os . path . isdir ( path ) and os . path . isfile ( requirements_file ) ) : print 'Installing requirements for {0}' . format ( directory ) ctx . run ( pip_install ( requirements_file , constraints_file = CONSTRAINTS_PATH ) , echo = True ) print 'Finished installing addon requirements'
install all addon requirements .