docs: def get_location(self, location, depth=0):
          """Resolve aliases and apply distbase.
          """
          if not location:
              return []
          if location in self.aliases:
              res = []
              if depth > MAXALIASDEPTH:
                  err_exit('Maximum alias depth exceeded: %(location)s' % locals())
              for loc in self.aliases[location]:
                  res.extend(self.get_location(loc, depth+1))
              return res
          if self.is_server(location):
              return [location]
          if location == 'pypi':
              err_exit('No configuration found for server: pypi\n'
                       'Please create a ~/.pypirc file')
          if self.urlparser.is_url(location):
              return [location]
          if not self.has_host(location) and self.distbase:
              return [self.join(self.distbase, location)]
          return [location]