'Returns the locations found via self.index_urls
Checks the url_name on the main (first in the list) index and
use this url_name to produce all locations'

def _get_index_urls_locations(self, project_name):

    def mkurl_pypi_url(url):
        loc = posixpath.join(url, urllib_parse.quote(project_name.lower()))
        if (not loc.endswith('/')):
            loc = (loc + '/')
        return loc
    return [mkurl_pypi_url(url) for url in self.index_urls]
