From b828ff0bdba8e4fa8506c9d1fdc4a48ec491d52a Mon Sep 17 00:00:00 2001 From: Gengliang Wang Date: Thu, 10 Aug 2023 20:02:59 -0700 Subject: [PATCH] [SPARK-44771][INFRA] Remove 'sudo' in 'pip install' suggestions of dev scripts ### What changes were proposed in this pull request? Remove 'sudo' in 'pip install' suggestions in the dev scripts ### Why are the changes needed? pip install doesn't need to be system administrator. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? After changes, `git grep "sudo pip"` has no output Closes #42444 from gengliangwang/removeSudo. Authored-by: Gengliang Wang Signed-off-by: Gengliang Wang --- dev/create-release/releaseutils.py | 4 ++-- dev/github_jira_sync.py | 2 +- dev/merge_spark_pr.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dev/create-release/releaseutils.py b/dev/create-release/releaseutils.py index 26abab9b28d16..5676b362e3ee5 100755 --- a/dev/create-release/releaseutils.py +++ b/dev/create-release/releaseutils.py @@ -32,7 +32,7 @@ from jira.utils import JIRAError except ImportError: print("This tool requires the jira-python library") - print("Install using 'sudo pip3 install jira'") + print("Install using 'pip3 install jira'") sys.exit(-1) try: @@ -40,7 +40,7 @@ from github import GithubException except ImportError: print("This tool requires the PyGithub library") - print("Install using 'sudo pip install PyGithub'") + print("Install using 'pip install PyGithub'") sys.exit(-1) diff --git a/dev/github_jira_sync.py b/dev/github_jira_sync.py index 3163f26644085..45908518d8280 100755 --- a/dev/github_jira_sync.py +++ b/dev/github_jira_sync.py @@ -30,7 +30,7 @@ import jira.client except ImportError: print("This tool requires the jira-python library") - print("Install using 'sudo pip3 install jira'") + print("Install using 'pip3 install jira'") sys.exit(-1) # User facing configs diff --git a/dev/merge_spark_pr.py b/dev/merge_spark_pr.py index 41b00b463f11e..84fbb1788ac0c 100755 --- a/dev/merge_spark_pr.py +++ b/dev/merge_spark_pr.py @@ -585,7 +585,7 @@ def main(): print("JIRA_USERNAME and JIRA_PASSWORD not set") print("Exiting without trying to close the associated JIRA.") else: - print("Could not find jira-python library. Run 'sudo pip3 install jira' to install.") + print("Could not find jira-python library. Run 'pip3 install jira' to install.") print("Exiting without trying to close the associated JIRA.")