From 50b785ca7a830f764f4536e3f41bb3181664922b Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Tue, 3 Oct 2023 17:12:02 +0200 Subject: [PATCH] GH-37993: [CI] Fix conda-integration build (#37990) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### Rationale for this change The conda-integration build has recently started failing: https://github.com/apache/arrow/actions/runs/6393852866/job/17353952453 Apparently this is because conda-forge is now providing Python 3.12 by default, and pythonnet [does not support it yet](https://github.com/pythonnet/pythonnet/pull/2249). ### What changes are included in this PR? Avoid using Python 3.12 for Archery in conda-integration build. ### Are these changes tested? Yes, by construction. ### Are there any user-facing changes? No. * Closes: #37993 Authored-by: Antoine Pitrou Signed-off-by: Raúl Cumplido --- ci/docker/conda-integration.dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ci/docker/conda-integration.dockerfile b/ci/docker/conda-integration.dockerfile index a306790b5cb6d..074021677d6fd 100644 --- a/ci/docker/conda-integration.dockerfile +++ b/ci/docker/conda-integration.dockerfile @@ -29,9 +29,11 @@ ARG go=1.19.13 # Install Archery and integration dependencies COPY ci/conda_env_archery.txt /arrow/ci/ +# Pin Python until pythonnet is made compatible with 3.12 +# (https://github.com/pythonnet/pythonnet/pull/2249) RUN mamba install -q -y \ --file arrow/ci/conda_env_archery.txt \ - "python>=3.7" \ + "python < 3.12" \ numpy \ compilers \ maven=${maven} \