def get_url_map():
    """
    Loads custom/pypi/map.txt and builds a dict where map[package_name] = url
    :return: dict, urls
    """
    map = {}
    path = os.path.join(
        os.path.dirname(os.path.realpath(__file__)),  # current working dir ../
        "custom",  # ../custom/
        "pypi",  # ../custom/pypi/
        "map.txt"  # ../custom/pypi/map.txt
    )
    with open(path) as f:
        for line in f.readlines():
            package, url = line.strip().split(": ")
            map[package] = url
    return map