Install os clients from git
When installing openstack clients, which have been pulled in as requirements for openstack services, allow for the installation from source repos, if the source install type has been selected. Change-Id: I72037c5679b17102de5df02d08194fdb56f856d4 Closes-Bug: 1390051
This commit is contained in:
parent
d99cf49c9d
commit
cbff052e66
|
@ -41,6 +41,17 @@ function python_install() {
|
|||
pip install -U 'pbr>=0.5.21,<1.0'
|
||||
|
||||
if [ -n "$reqs" ] ; then
|
||||
# Install requirements off source repo if the install type
|
||||
# "source" has been specified and a cloned repo exists.
|
||||
for i in $(cat $reqs | grep -v ^# | grep -v ^$ | awk -F'[=><]' '{print $1}') ; do
|
||||
INSTALL_TYPE_VAR=DIB_INSTALLTYPE_${i//[^A-Za-z0-9]/_}
|
||||
INSTALL_TYPE=${!INSTALL_TYPE_VAR:-source}
|
||||
GIT_CLONE_DIR="/opt/stack/$i"
|
||||
if [ "$INSTALL_TYPE" = "source" ] && [ -d "$GIT_CLONE_DIR" ] ; then
|
||||
pip install $GIT_CLONE_DIR
|
||||
fi
|
||||
done
|
||||
|
||||
pip install -r $reqs
|
||||
# FIXME: pip requires doesn't include MySQL-python
|
||||
pip install MySQL-python
|
||||
|
|
Loading…
Reference in New Issue