This is an automated email from the ASF dual-hosted git repository.
gurwls223 pushed a commit to branch branch-3.1
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/branch-3.1 by this push:
new e01c850 [SPARK-34010][SQL][DODCS] Use python3 instead of python in
SQL documentation build
e01c850 is described below
commit e01c850a8f88bde763358b9c156fbc64f0e5f4fe
Author: HyukjinKwon <[email protected]>
AuthorDate: Tue Jan 5 19:48:10 2021 +0900
[SPARK-34010][SQL][DODCS] Use python3 instead of python in SQL
documentation build
### What changes were proposed in this pull request?
This PR proposes to use python3 instead of python in SQL documentation
build.
After SPARK-29672, we use `sql/create-docs.sh` everywhere in Spark dev. We
should fix it in `sql/create-docs.sh` too.
This blocks release because the release container does not have `python`
but only `python3`.
### Why are the changes needed?
To unblock the release.
### Does this PR introduce _any_ user-facing change?
No, dev-only.
### How was this patch tested?
I manually ran the script
Closes #31041 from HyukjinKwon/SPARK-34010.
Authored-by: HyukjinKwon <[email protected]>
Signed-off-by: HyukjinKwon <[email protected]>
(cherry picked from commit 8d09f9649510bf5d812c82b04f7711b9252a7db0)
Signed-off-by: HyukjinKwon <[email protected]>
---
sql/create-docs.sh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sql/create-docs.sh b/sql/create-docs.sh
index 6614c71..8721df8 100755
--- a/sql/create-docs.sh
+++ b/sql/create-docs.sh
@@ -27,14 +27,14 @@ set -e
FWDIR="$(cd "`dirname "${BASH_SOURCE[0]}"`"; pwd)"
SPARK_HOME="$(cd "`dirname "${BASH_SOURCE[0]}"`"/..; pwd)"
-if ! hash python 2>/dev/null; then
- echo "Missing python in your path, skipping SQL documentation generation."
+if ! hash python3 2>/dev/null; then
+ echo "Missing python3 in your path, skipping SQL documentation generation."
exit 0
fi
if ! hash mkdocs 2>/dev/null; then
echo "Missing mkdocs in your path, trying to install mkdocs for SQL
documentation generation."
- pip install mkdocs
+ pip3 install mkdocs
fi
pushd "$FWDIR" > /dev/null
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]