Skip to content

Apache DataFusion SQL Query Engine

ARROW-9094: [Python] Bump versions of compiled dependencies in manylinux wheels

Antoine Pitrou409ac48e77e9
diff --git a/dev/archery/archery/cli.py b/dev/archery/archery/cli.py
index a9fddca81c..0da72aa9cd 100644
--- a/dev/archery/archery/cli.py
+++ b/dev/archery/archery/cli.py
@@ -693,6 +693,8 @@ def docker_compose(obj, src):
help="Whether to force pull the image and its ancestor images")
@click.option('--force-build/--no-build', default=True,
help="Whether to force build the image and its ancestor images")
[email protected]('--build-only', default=False, is_flag=True,
+ help="Pull and/or build the image, but do not run it")
@click.option('--use-cache/--no-cache', default=True,
help="Whether to use cache when building the image and its "
"ancestor images")
@@ -706,8 +708,8 @@ def docker_compose(obj, src):
@click.option('--volume', '-v', multiple=True,
help="Set volume within the container")
@click.pass_obj
-def docker_compose_run(obj, image, command, env, force_pull, force_build,
- use_cache, use_leaf_cache, dry_run, volume):
+def docker_compose_run(obj, image, command, *, env, force_pull, force_build,
+ build_only, use_cache, use_leaf_cache, dry_run, volume):
"""Execute docker-compose builds.
To see the available builds run `archery docker list`.
@@ -760,6 +762,7 @@ def docker_compose_run(obj, image, command, env, force_pull, force_build,
env=env,
force_pull=force_pull,
force_build=force_build,
+ build_only=build_only,
use_cache=use_cache,
use_leaf_cache=use_leaf_cache,
volumes=volume
diff --git a/dev/archery/archery/docker.py b/dev/archery/archery/docker.py
index 6e63abfad5..92beec7220 100644
--- a/dev/archery/archery/docker.py
+++ b/dev/archery/archery/docker.py
@@ -160,9 +160,9 @@ class DockerCompose(Command):
else:
self._execute('build', '--no-cache', image)
- def run(self, image, command=None, env=None, force_pull=False,
+ def run(self, image, command=None, *, env=None, force_pull=False,
force_build=False, use_cache=True, use_leaf_cache=True,
- volumes=None):
+ volumes=None, build_only=False):
self._validate_image(image)
if force_pull:
@@ -170,6 +170,8 @@ class DockerCompose(Command):
if force_build:
self.build(image, use_cache=use_cache,
use_leaf_cache=use_leaf_cache)
+ if build_only:
+ return
args = []
if env is not None:
diff --git a/dev/archery/archery/tests/test_cli.py b/dev/archery/archery/tests/test_cli.py
index d18684f40f..67ff53747f 100644
--- a/dev/archery/archery/tests/test_cli.py
+++ b/dev/archery/archery/tests/test_cli.py
@@ -26,13 +26,14 @@ from archery.docker import DockerCompose
@pytest.mark.parametrize(('command', 'args', 'kwargs'), [
(
- ['ubuntu-cpp'],
+ ['ubuntu-cpp', '--build-only'],
['ubuntu-cpp'],
dict(
command=None,
env={},
force_pull=True,
force_build=True,
+ build_only=True,
use_cache=True,
use_leaf_cache=True,
volumes=()
@@ -46,6 +47,7 @@ from archery.docker import DockerCompose
env={},
force_pull=True,
force_build=True,
+ build_only=False,
use_cache=True,
use_leaf_cache=True,
volumes=()
@@ -59,6 +61,7 @@ from archery.docker import DockerCompose
env={},
force_pull=False,
force_build=False,
+ build_only=False,
use_cache=True,
use_leaf_cache=True,
volumes=()
@@ -75,6 +78,7 @@ from archery.docker import DockerCompose
env={},
force_pull=False,
force_build=True,
+ build_only=False,
use_cache=False,
use_leaf_cache=False,
volumes=()
@@ -91,6 +95,7 @@ from archery.docker import DockerCompose
},
force_pull=True,
force_build=True,
+ build_only=False,
use_cache=True,
use_leaf_cache=True,
volumes=()
@@ -107,6 +112,7 @@ from archery.docker import DockerCompose
env={},
force_pull=True,
force_build=True,
+ build_only=False,
use_cache=True,
use_leaf_cache=True,
volumes=(