Skip to content

Commit

Permalink
[SPARK-35869][INFRA] Fix "Cannot run program python" error from do-re…
Browse files Browse the repository at this point in the history
…lease-docker.sh

### What changes were proposed in this pull request?

Add `python-is-python3` to `create-release/spark-rm/Dockerfile`

### Why are the changes needed?

Systems that use pthon3 by default should explicitly indicate the python version is 3.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Tested during Apache 3.0.3 release.

Closes #33048 from Ngone51/fix-release-script.

Authored-by: yi.wu <yi.wu@databricks.com>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
  • Loading branch information
Ngone51 authored and HyukjinKwon committed Jun 24, 2021
1 parent b3a2ceb commit 1cdc56c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev/create-release/spark-rm/Dockerfile
Expand Up @@ -70,7 +70,7 @@ RUN apt-get clean && apt-get update && $APT_INSTALL gnupg ca-certificates && \
curl -sL https://deb.nodesource.com/setup_12.x | bash && \
$APT_INSTALL nodejs && \
# Install needed python packages. Use pip for installing packages (for consistency).
$APT_INSTALL python3-pip python3-setuptools && \
$APT_INSTALL python-is-python3 python3-pip python3-setuptools && \
# qpdf is required for CRAN checks to pass.
$APT_INSTALL qpdf jq && \
pip3 install $PIP_PKGS && \
Expand Down

0 comments on commit 1cdc56c

Please sign in to comment.