Skip to content

Commit

Permalink
[SPARK-31807][INFRA] Use python 3 style in release-build.sh
Browse files Browse the repository at this point in the history
### What changes were proposed in this pull request?

This PR aims to use the style that is compatible with both python 2 and 3.

### Why are the changes needed?

This will help python 3 migration.

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

No.

### How was this patch tested?

Manual.

Closes #28632 from williamhyun/use_python3_style.

Authored-by: William Hyun <williamhyun3@gmail.com>
Signed-off-by: HyukjinKwon <gurwls223@apache.org>
(cherry picked from commit 753636e)
Signed-off-by: HyukjinKwon <gurwls223@apache.org>
(cherry picked from commit 40e5de5)
Signed-off-by: Dongjoon Hyun <dhyun@apple.com>
  • Loading branch information
williamhyun authored and dongjoon-hyun committed Mar 12, 2021
1 parent 6ec74e2 commit 7e0fbe0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dev/create-release/release-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ if [[ "$1" == "publish-snapshot" ]]; then
echo "</server></servers></settings>" >> $tmp_settings

# Generate random point for Zinc
export ZINC_PORT=$(python -S -c "import random; print random.randrange(3030,4030)")
export ZINC_PORT=$(python -S -c "import random; print(random.randrange(3030,4030))")

$MVN -DzincPort=$ZINC_PORT --settings $tmp_settings -DskipTests $SCALA_2_11_PROFILES $PUBLISH_PROFILES deploy
#./dev/change-scala-version.sh 2.12
Expand Down Expand Up @@ -423,7 +423,7 @@ if [[ "$1" == "publish-release" ]]; then
tmp_repo=$(mktemp -d spark-repo-XXXXX)

# Generate random point for Zinc
export ZINC_PORT=$(python -S -c "import random; print random.randrange(3030,4030)")
export ZINC_PORT=$(python -S -c "import random; print(random.randrange(3030,4030))")

$MVN -DzincPort=$ZINC_PORT -Dmaven.repo.local=$tmp_repo -DskipTests $SCALA_2_11_PROFILES $PUBLISH_PROFILES clean install

Expand Down

0 comments on commit 7e0fbe0

Please sign in to comment.