Perserve env variables

This patch set adds in -E flag for ``sudo pip install`` so
any environment variable is preserved for the install.  This allows
for some proxy-related variables such as ``http_proxy`` to pass
through for pip.

Change-Id: I89881d811b53b27e2663a40c1c96fcf18e614b00
This commit is contained in:
Tin Lam 2018-01-04 18:47:57 -06:00
parent bd3dd6c83a
commit 8c0346da2a
2 changed files with 5 additions and 5 deletions

View File

@ -16,7 +16,7 @@
set -xe
sudo -H pip install python-openstackclient python-heatclient
sudo -H -E pip install python-openstackclient python-heatclient
sudo -H mkdir -p /etc/openstack
cat << EOF | sudo -H tee -a /etc/openstack/clouds.yaml

View File

@ -62,10 +62,10 @@ function base_install {
python-pip
fi
sudo -H pip install --upgrade pip
sudo -H pip install --upgrade setuptools
sudo -H pip install pyyaml
sudo -H pip install yq
sudo -H -E pip install --upgrade pip
sudo -H -E pip install --upgrade setuptools
sudo -H -E pip install pyyaml
sudo -H -E pip install yq
if [ "x$SDN_PLUGIN" == "xlinuxbridge" ]; then
sdn_lb_support_install