Add requirements.txt support to os-svc-install.
http://pad.lv/1179008 has all of OpenStack migrating tools/pip-requires to requirements.txt. We will use both during the transition. Fixes bug #1179008 Change-Id: I7b3c64902b4c1b6f83402a21248a4eadad725c34
This commit is contained in:
parent
acd6f161f5
commit
60a44b121d
|
@ -17,9 +17,17 @@ function python-install() {
|
|||
source /opt/stack/venvs/$name/bin/activate
|
||||
set -u
|
||||
|
||||
if [ -e $svc_root/tools/pip-requires ]; then
|
||||
if [ -e $svc_root/requirements.txt ]; then
|
||||
reqs=$svc_root/requirements.txt
|
||||
elif [ -e $svc_root/tools/pip-requires ]; then
|
||||
reqs=$svc_root/tools/pip-requires
|
||||
else
|
||||
reqs=""
|
||||
fi
|
||||
|
||||
if [ -n "$reqs" ] ; then
|
||||
PIP_INDEX_URL=http://pypi.openstack.org/openstack/ \
|
||||
pip install -r $svc_root/tools/pip-requires
|
||||
pip install -r $reqs
|
||||
fi
|
||||
|
||||
$pip_install $svc_root
|
||||
|
|
Loading…
Reference in New Issue