docs: def get_distributions(cls, ctx, extra_dist_dirs=[]):
          '''Returns all the distributions found locally.'''
          if extra_dist_dirs:
              raise BuildInterruptingException(
                  'extra_dist_dirs argument to get_distributions '
                  'is not yet implemented')
          dist_dir = ctx.dist_dir
          folders = glob.glob(join(dist_dir, '*'))
          for dir in extra_dist_dirs:
              folders.extend(glob.glob(join(dir, '*')))
  
          dists = []
          for folder in folders:
              if exists(join(folder, 'dist_info.json')):
                  with open(join(folder, 'dist_info.json')) as fileh:
                      dist_info = json.load(fileh)
                  dist = cls(ctx)
                  dist.name = folder.split('/')[-1]
                  dist.dist_dir = folder
                  dist.needs_build = False
                  dist.recipes = dist_info['recipes']
                  if 'archs' in dist_info:
                      dist.archs = dist_info['archs']
                  if 'ndk_api' in dist_info:
                      dist.ndk_api = dist_info['ndk_api']
                  else:
                      dist.ndk_api = None
                      warning(
                          "Distribution {distname}: ({distdir}) has been "
                          "built with an unknown api target, ignoring it, "
                          "you might want to delete it".format(
                              distname=dist.name,
                              distdir=dist.dist_dir
                          )
                      )
                  dists.append(dist)
          return dists