Example #1
0
def download(edition, version, path="."):
    """ Download the Neo4j server archive for the given edition and version.
    """
    archive_name = dist_archive_name(edition, version)
    uri = "%s://%s/%s" % (DIST_SCHEME, DIST_HOST, archive_name)
    filename = os.path.join(os.path.abspath(path), archive_name)
    _download(uri, filename)
    return filename
Example #2
0
def download(edition, version, path="."):
    """ Download the Neo4j server archive for the given edition and version.
    """
    archive_name = dist_archive_name(edition, version)
    uri = "%s://%s/%s" % (DIST_SCHEME, DIST_HOST, archive_name)
    filename = os.path.join(os.path.abspath(path), archive_name)
    _download(uri, filename)
    return filename
Example #3
0
def download(edition, version, path="."):
    """ Download the Neo4j server archive for the given edition and version. The
    download URI is built using the value in the environment variable ``NEO4J_DIST``
    as a base or ``http://dist.neo4j.org/`` if this is not set.
    """
    archive_name = dist_archive_name(edition, version)
    uri = NEO4J_DIST + archive_name
    filename = os.path.join(os.path.abspath(path), archive_name)
    _download(uri, filename)
    return filename
Example #4
0
def download(edition, version, path="."):
    """ Download the Neo4j server archive for the given edition and version. The
    download URI is built using the value in the environment variable ``NEO4J_DIST``
    as a base or ``http://dist.neo4j.org/`` if this is not set.
    """
    archive_name = dist_archive_name(edition, version)
    uri = "%s/%s" % (NEO4J_DIST, archive_name)
    filename = os.path.join(os.path.abspath(path), archive_name)
    _download(uri, filename)
    return filename