From d0560ef6fe2b952cda18cd811d39da61506e980c Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Mon, 19 Feb 2024 14:02:08 +0100 Subject: [PATCH] GH-40112: [CI][Python] Ensure CPython is selected, not PyPy Sometimes, mamba might select PyPy over CPython in certain environment upgrade/downgrade scenarios. --- ci/docker/conda-python.dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/docker/conda-python.dockerfile b/ci/docker/conda-python.dockerfile index 5d37c53386e7d..6f05d83c8a1dc 100644 --- a/ci/docker/conda-python.dockerfile +++ b/ci/docker/conda-python.dockerfile @@ -28,7 +28,7 @@ COPY ci/conda_env_python.txt \ RUN mamba install -q -y \ --file arrow/ci/conda_env_python.txt \ $([ "$python" == $(gdb --batch --eval-command 'python import sys; print(f"{sys.version_info.major}.{sys.version_info.minor}")') ] && echo "gdb") \ - python=${python} \ + "python=${python}=*_cpython" \ nomkl && \ mamba clean --all