From cf6df907443fa7c07a972046d8089dc66a3653c3 Mon Sep 17 00:00:00 2001 From: Derek Higgins Date: Wed, 15 Jan 2014 15:46:46 +0000 Subject: [PATCH] Don't install scripts straight to /usr/local/bin This results in more then just the openstack clients getting installed to /usr/local/bin. In my case /usr/local/bin/pip was part of the python-novaclient virtualenv and being used globally. Instead link to what we want inside the virtualenv. Change-Id: If44b397cdd80c46bf5a2a86d7369a4d74e09b58c --- elements/openstack-clients/install.d/51-openstack-clients | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/elements/openstack-clients/install.d/51-openstack-clients b/elements/openstack-clients/install.d/51-openstack-clients index 3e065be9e..18dcd0160 100755 --- a/elements/openstack-clients/install.d/51-openstack-clients +++ b/elements/openstack-clients/install.d/51-openstack-clients @@ -27,7 +27,8 @@ for client in $client_install_list; do elif [ -e tools/pip-requires ]; then pip install -r tools/pip-requires fi - python setup.py develop --script-dir /usr/local/bin + python setup.py develop + ln -s /opt/stack/venvs/$repo/bin/$client /usr/local/bin/$client popd set +u