You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by do...@apache.org on 2021/07/15 15:00:43 UTC

[spark] branch branch-3.1 updated: [SPARK-36159][BUILD] Replace 'python' to 'python3' in dev/test-dependencies.sh

This is an automated email from the ASF dual-hosted git repository.

dongjoon 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 4382dfc  [SPARK-36159][BUILD] Replace 'python' to 'python3' in dev/test-dependencies.sh
4382dfc is described below

commit 4382dfc22f48809fd8e52bbd3d1a411819bb12b8
Author: Hyukjin Kwon <gu...@apache.org>
AuthorDate: Thu Jul 15 07:58:18 2021 -0700

    [SPARK-36159][BUILD] Replace 'python' to 'python3' in dev/test-dependencies.sh
    
    ### What changes were proposed in this pull request?
    
    This PR is a followup of https://github.com/apache/spark/pull/26330. There is the last place to fix in `dev/test-dependencies.sh`
    
    ### Why are the changes needed?
    
    To stick to Python 3 instead of using Python 2 mistakenly.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No, dev-only.
    
    ### How was this patch tested?
    
    Manually tested.
    
    Closes #33368 from HyukjinKwon/change-python-3.
    
    Authored-by: Hyukjin Kwon <gu...@apache.org>
    Signed-off-by: Dongjoon Hyun <do...@apache.org>
    (cherry picked from commit 6bd385f1e34a03507dd59a6fa02aab976547614b)
    Signed-off-by: Dongjoon Hyun <do...@apache.org>
---
 dev/test-dependencies.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev/test-dependencies.sh b/dev/test-dependencies.sh
index e9e9227..de659e9 100755
--- a/dev/test-dependencies.sh
+++ b/dev/test-dependencies.sh
@@ -52,7 +52,7 @@ if [ $? != 0 ]; then
     exit 1
 fi
 set -e
-TEMP_VERSION="spark-$(python -S -c "import random; print(random.randrange(100000, 999999))")"
+TEMP_VERSION="spark-$(python3 -S -c "import random; print(random.randrange(100000, 999999))")"
 
 function reset_version {
   # Delete the temporary POMs that we wrote to the local Maven repo:

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org