Skip to content

Commit

Permalink
apacheGH-40112: [CI][Python] Ensure CPython is selected, not PyPy (ap…
Browse files Browse the repository at this point in the history
…ache#40131)

Sometimes, mamba might select PyPy over CPython in certain environment upgrade/downgrade scenarios.

* Closes: apache#40112

Lead-authored-by: Antoine Pitrou <[email protected]>
Co-authored-by: Uwe L. Korn <[email protected]>
Signed-off-by: Antoine Pitrou <[email protected]>
  • Loading branch information
2 people authored and zanmato1984 committed Feb 28, 2024
1 parent 0d0d22b commit 2689b95
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 2689b95

Please sign in to comment.