Install python-senlinclient using pip by default

After we have a release of python-senlinclient, we should install
it using pip by default.

Change-Id: Icdd8d26acc22f70c9abe99e31932e57b76e1c6eb
This commit is contained in:
yanyanhu 2015-09-23 22:24:41 -04:00
parent 55d45268f7
commit 147b49da45
1 changed files with 6 additions and 2 deletions

View File

@ -135,8 +135,12 @@ function create_senlin_cache_dir {
# install_senlinclient() - Collect source and prepare
function install_senlinclient {
git_clone $SENLINCLIENT_REPO $SENLINCLIENT_DIR $SENLINCLIENT_BRANCH
setup_develop $SENLINCLIENT_DIR
if use_library_from_git "python-senlinclient"; then
git_clone $SENLINCLIENT_REPO $SENLINCLIENT_DIR $SENLINCLIENT_BRANCH
setup_develop $SENLINCLIENT_DIR
else
pip_install python-senlinclient
fi
}
# install_senlin() - Collect source and prepare