Merge "Workaround for new pip 20.3 behavior"
This commit is contained in:
commit
336e3afd5f
|
@ -1168,8 +1168,13 @@ function install_monasca_agent {
|
|||
sudo mkdir -p /opt/monasca-agent || true
|
||||
sudo chown $STACK_USER:monasca /opt/monasca-agent
|
||||
|
||||
# TODO: remove the trailing pip version when a proper fix
|
||||
# arrives for handling this bug https://github.com/pypa/pip/issues/8210
|
||||
# Similar issue: https://bugs.launchpad.net/devstack/+bug/1906322
|
||||
if python3_enabled; then
|
||||
(cd /opt/monasca-agent ; virtualenv -p python3 .)
|
||||
(cd /opt/monasca-agent ;
|
||||
virtualenv -p python3 . ;
|
||||
bin/python3 -m pip install --upgrade pip==20.2.3)
|
||||
sudo rm -rf /opt/stack/monasca-common/.eggs/
|
||||
else
|
||||
(cd /opt/monasca-agent ; virtualenv .)
|
||||
|
|
Loading…
Reference in New Issue