Skip to content

Commit

Permalink
[SPARK-44771][INFRA] Remove 'sudo' in 'pip install' suggestions of de…
Browse files Browse the repository at this point in the history
…v 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 apache#42444 from gengliangwang/removeSudo.

Authored-by: Gengliang Wang <gengliang@apache.org>
Signed-off-by: Gengliang Wang <gengliang@apache.org>
  • Loading branch information
gengliangwang committed Aug 11, 2023
1 parent 1373292 commit b828ff0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dev/create-release/releaseutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@
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:
from github import Github # noqa: F401
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)


Expand Down
2 changes: 1 addition & 1 deletion dev/github_jira_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion dev/merge_spark_pr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")


Expand Down

0 comments on commit b828ff0

Please sign in to comment.