wangyum opened a new pull request #29628:
URL: https://github.com/apache/spark/pull/29628
### What changes were proposed in this pull request?
Use `pip3` to install `jira-python` library.
### Why are the changes needed?
We use python3 in the build script and `pip` is missing by default.
```
yumwang@LM-SHC-16508156 spark % sw_vers
ProductName: Mac OS X
ProductVersion: 10.15.6
BuildVersion: 19G2021
yumwang@LM-SHC-16508156 spark % sudo pip install jira
Password:
sudo: pip: command not found
```
### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
Manual test:
```
yumwang@LM-SHC-16508156 spark % sudo pip3 install jira
WARNING: The directory '/Users/yumwang/Library/Caches/pip' or its parent
directory is not owned or is not writable by the current user. The cache has
been disabled. Check the permissions and owner of that directory. If executing
pip with sudo, you may want sudo's -H flag.
Collecting jira
Downloading jira-2.0.0-py2.py3-none-any.whl (57 kB)
|████████████████████████████████| 57 kB 78 kB/s
Requirement already satisfied: setuptools>=20.10.1 in
/usr/local/lib/python3.8/site-packages (from jira) (49.2.0)
Collecting six>=1.10.0
Downloading six-1.15.0-py2.py3-none-any.whl (10 kB)
Collecting defusedxml
Downloading defusedxml-0.6.0-py2.py3-none-any.whl (23 kB)
Collecting oauthlib[signedtoken]>=1.0.0
Downloading oauthlib-3.1.0-py2.py3-none-any.whl (147 kB)
|████████████████████████████████| 147 kB 306 kB/s
Collecting pbr>=3.0.0
Downloading pbr-5.5.0-py2.py3-none-any.whl (106 kB)
|████████████████████████████████| 106 kB 345 kB/s
Collecting requests-toolbelt
Downloading requests_toolbelt-0.9.1-py2.py3-none-any.whl (54 kB)
|████████████████████████████████| 54 kB 474 kB/s
Collecting requests-oauthlib>=0.6.1
Downloading requests_oauthlib-1.3.0-py2.py3-none-any.whl (23 kB)
Collecting requests>=2.10.0
Downloading requests-2.24.0-py2.py3-none-any.whl (61 kB)
|████████████████████████████████| 61 kB 521 kB/s
Collecting cryptography; extra == "signedtoken"
Downloading cryptography-3.1-cp35-abi3-macosx_10_10_x86_64.whl (1.8 MB)
|████████████████████████████████| 1.8 MB 497 kB/s
Collecting pyjwt>=1.0.0; extra == "signedtoken"
Downloading PyJWT-1.7.1-py2.py3-none-any.whl (18 kB)
Collecting chardet<4,>=3.0.2
Downloading chardet-3.0.4-py2.py3-none-any.whl (133 kB)
|████████████████████████████████| 133 kB 671 kB/s
Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1
Downloading urllib3-1.25.10-py2.py3-none-any.whl (127 kB)
|████████████████████████████████| 127 kB 930 kB/s
Collecting certifi>=2017.4.17
Downloading certifi-2020.6.20-py2.py3-none-any.whl (156 kB)
|████████████████████████████████| 156 kB 7.1 MB/s
Collecting idna<3,>=2.5
Downloading idna-2.10-py2.py3-none-any.whl (58 kB)
|████████████████████████████████| 58 kB 1.3 MB/s
Collecting cffi!=1.11.3,>=1.8
Downloading cffi-1.14.2-cp38-cp38-macosx_10_9_x86_64.whl (176 kB)
|████████████████████████████████| 176 kB 7.3 MB/s
Collecting pycparser
Downloading pycparser-2.20-py2.py3-none-any.whl (112 kB)
|████████████████████████████████| 112 kB 773 kB/s
Installing collected packages: six, defusedxml, pycparser, cffi,
cryptography, pyjwt, oauthlib, pbr, chardet, urllib3, certifi, idna, requests,
requests-toolbelt, requests-oauthlib, jira
Successfully installed certifi-2020.6.20 cffi-1.14.2 chardet-3.0.4
cryptography-3.1 defusedxml-0.6.0 idna-2.10 jira-2.0.0 oauthlib-3.1.0 pbr-5.5.0
pycparser-2.20 pyjwt-1.7.1 requests-2.24.0 requests-oauthlib-1.3.0
requests-toolbelt-0.9.1 six-1.15.0 urllib3-1.25.10
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]