Skip to content

Commit 0483894

Browse files
committed
[SPARK-54263][INFRA] Fix run-in-container script to use Python 3.11 instead of 3.9
### What changes were proposed in this pull request? This PR aims to fix `run-in-container` script to use Python 3.11 instead of 3.9. ### Why are the changes needed? Since Apache Spark 4.0.0, we have an optional way to build docs in Docker image. - #48860 https://github.com/apache/spark/blob/fa33ea000a0bda9e5a3fa1af98e8e85b8cc5e4d4/docs/README.md?plain=1#L129-L136 When we started to use Python 3.11 instead of 3.9 for Apache Spark 4.1.0, we missed to update this `run-in-container`. - #51150 - #51198 ### Does this PR introduce _any_ user-facing change? No behavior change because this is an optional way to generate Spark docs. ### How was this patch tested? Manually test. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #52959 from dongjoon-hyun/SPARK-54263. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]> (cherry picked from commit 6466ed5) Signed-off-by: Dongjoon Hyun <[email protected]>
1 parent 4e9ebd4 commit 0483894

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dev/spark-test-image-util/docs/run-in-container

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ cd /__w/spark/spark/docs
2828
bundle install
2929

3030
# 3.Build docs, includes: `error docs`, `scala doc`, `python doc`, `sql doc`, excludes: `r doc`.
31-
# We need this link to make sure `python3` points to `python3.9` which contains the prerequisite packages.
32-
ln -s "$(which python3.9)" "/usr/local/bin/python3"
31+
# We need this link to make sure `python3` points to `python3.11` which contains the prerequisite packages.
32+
ln -s "$(which python3.11)" "/usr/local/bin/python3"
3333

3434
# Build docs first with SKIP_API to ensure they are buildable without requiring any
3535
# language docs to be built beforehand.

0 commit comments

Comments
 (0)