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
This commit is contained in:
Derek Higgins 2014-01-15 15:46:46 +00:00
parent f4403c104f
commit cf6df90744
1 changed files with 2 additions and 1 deletions

View File

@ -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