Skip to content

Commit

Permalink
GH-40112: [CI][Python] Ensure CPython is selected, not PyPy (#40131)
Browse files Browse the repository at this point in the history
Sometimes, mamba might select PyPy over CPython in certain environment upgrade/downgrade scenarios.

* Closes: #40112

Lead-authored-by: Antoine Pitrou <antoine@python.org>
Co-authored-by: Uwe L. Korn <uwe.korn@quantco.com>
Signed-off-by: Antoine Pitrou <antoine@python.org>
  • Loading branch information
pitrou and xhochy authored Feb 19, 2024
1 parent 4b74b45 commit ec3723e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/docker/conda-python.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ec3723e

Please sign in to comment.