raulcd commented on code in PR #43970:
URL: https://github.com/apache/arrow/pull/43970#discussion_r1756634393
##########
ci/docker/linux-apt-r.dockerfile:
##########
@@ -81,9 +77,22 @@ RUN cat /arrow/ci/etc/rprofile >> $(R
RHOME)/etc/Rprofile.site
# Also ensure parallel compilation of C/C++ code
RUN echo "MAKEFLAGS=-j$(R -s -e 'cat(parallel::detectCores())')" >> $(R
RHOME)/etc/Renviron.site
-# Set up Python 3 and its dependencies
-RUN ln -s /usr/bin/python3 /usr/local/bin/python && \
- ln -s /usr/bin/pip3 /usr/local/bin/pip
+ARG ubuntu
+ARG python="3.12"
+COPY ci/scripts/install_python.sh /arrow/ci/scripts/
+# Need Python to check py-to-r bridge. Ubuntu 20.04 uses
+# python 3.8 which is unsuported for pyarrow
+RUN if [ "${ubuntu}" = "20.04" ]; then \
+ /arrow/ci/scripts/install_python.sh linux ${python}; \
+ else \
+ apt update ${quiet} && \
+ apt-get install -y \
+ python3 \
+ python3-pip \
+ python3-dev && \
+ apt clean && \
+ rm -rf /var/lib/apt/lists/* \
+ ; fi
Review Comment:
I've reverted the changes on `linux-apt-r.dockerfile` and updated to 24.04
but the job still fails due to some issues building the container:
https://github.com/apache/arrow/actions/runs/10828983443/job/30045547039?pr=43970#step:7:27770
I will try a couple of things on following commits
--
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]