Add '-H -E' options to pass proxy env for sudo
'sudo python /tmp/get-pip.py' command call not working with proxy env, so add '-H -E' sudo options to pass proxy env to get-pip.py. Change-Id: If60bacc130d311f7694dba108bf922b393c1017c Closes-bug: #1519596
This commit is contained in:
parent
0163094325
commit
74aeb022cf
@ -42,7 +42,7 @@ fi
|
||||
# older versions of pip are incompatible with
|
||||
# requests, one of our indirect dependencies (bug 1459947).
|
||||
wget -O /tmp/get-pip.py https://bootstrap.pypa.io/get-pip.py
|
||||
sudo python /tmp/get-pip.py
|
||||
sudo -H -E python /tmp/get-pip.py
|
||||
|
||||
sudo -H -E pip install -r "$(dirname $0)/../requirements.txt"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user