Returns a filename or URL for the SDK name.

    The name can be a version string, a remote URL or a local path.

def parse_sdk_name(name):
    """Returns a filename or URL for the SDK name.

    The name can be a version string, a remote URL or a local path.
    """
    # Version like x.y.z, return as-is.
    if all(part.isdigit() for part in name.split('.', 2)):
        return DOWNLOAD_URL % name

    # A network location.
    url = urlparse.urlparse(name)
    if url.scheme:
        return name

    # Else must be a filename.
    return os.path.abspath(name)