kou commented on code in PR #38324:
URL: https://github.com/apache/arrow/pull/38324#discussion_r1365057834
##########
ci/docker/conda-python.dockerfile:
##########
@@ -23,9 +23,11 @@ FROM ${repo}:${arch}-conda-cpp
ARG python=3.8
COPY ci/conda_env_python.txt \
/arrow/ci/
+# If the Python version being tested is the same as the Python used by the
system gdb,
+# we need to install the conda-forge gdb instead.
RUN mamba install -q -y \
--file arrow/ci/conda_env_python.txt \
- gdb \
+ $([ "$python" == "3.10" ] && echo "gdb") \
Review Comment:
Can we try this?
```suggestion
$([ "$python" = $(gdb --batch --eval-command 'python import sys;
print(sys.version_info.major, sys.version_info.minor, sep=".")') ] && echo
"gdb") \
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]