kou commented on code in PR #38324:
URL: https://github.com/apache/arrow/pull/38324#discussion_r1364797328


##########
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:
   Will this be broken when we change the base Ubuntu version?
   
https://github.com/apache/arrow/blob/63840f297df681e710a0b1a822235eca54f1c2fb/ci/docker/conda.dockerfile#L19
   
   Can we detect the Python version that is used by system GDB?
   `gdb --batch --eval-command 'python import sys; 
print(sys.version_info.major, sys.version_info.minor, sep=".")'`?



-- 
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]

Reply via email to