Add networking-l2gw to tox_install.sh

Change-Id: Iaa8b5c2bcb14b8cad0df334726688bb1f9cd0613
(cherry picked from commit 794018067c)
This commit is contained in:
Amey Bhide 2015-10-15 14:14:26 -07:00
parent b54535b5d0
commit 8c78816fcf
2 changed files with 29 additions and 12 deletions

View File

@ -15,27 +15,45 @@
ZUUL_CLONER=/usr/zuul-env/bin/zuul-cloner
neutron_installed=$(echo "import neutron" | python 2>/dev/null ; echo $?)
networking_l2gw_installed=$(echo "import networking_l2gw" | python 2>/dev/null ; echo $?)
set -ex
cwd=$(/bin/pwd)
> /tmp/tox_install.txt
if [ $neutron_installed -eq 0 ]; then
echo "ALREADY INSTALLED" > /tmp/tox_install.txt
echo "Neutron already installed; using existing package"
elif [ -x "$ZUUL_CLONER" ]; then
echo "ZUUL CLONER" > /tmp/tox_install.txt
zuul_cloner () {
echo "ZUUL CLONER" >> /tmp/tox_install.txt
cd /tmp
$ZUUL_CLONER --cache-dir \
/opt/git \
git://git.openstack.org \
openstack/neutron
cd openstack/neutron
git://git.openstack.org $1
cd $1
pip install -e .
cd "$cwd"
}
pip_hardcode () {
echo "PIP HARDCODE: $1" >> /tmp/tox_install.txt
pip install -U -egit+https://git.openstack.org/$1
}
if [ $neutron_installed -eq 0 ]; then
echo "NEUTRON ALREADY INSTALLED" >> /tmp/tox_install.txt
echo "Neutron already installed; using existing package"
elif [ -x "$ZUUL_CLONER" ]; then
zuul_cloner openstack/neutron
else
echo "PIP HARDCODE" > /tmp/tox_install.txt
pip install -U -egit+https://git.openstack.org/openstack/neutron#egg=neutron
pip_hardcode openstack/neutron#egg=neutron
fi
if [ $networking_l2gw_installed -eq 0 ]; then
echo "NETWORKING_L2GW ALREADY INSTALLED" >> /tmp/tox_install.txt
echo "Networking-l2gw already installed; using existing package"
elif [ -x "$ZUUL_CLONER" ]; then
zuul_cloner openstack/networking-l2gw
else
pip_hardcode openstack/networking-l2gw#egg=networking-l2gw
fi
pip install -U $*

View File

@ -10,8 +10,7 @@ setenv = VIRTUAL_ENV={envdir}
PYTHONHASHSEED=0
usedevelop = True
install_command = {toxinidir}/tools/tox_install.sh {opts} {packages}
deps = -egit+https://git.openstack.org/openstack/networking-l2gw#egg=networking-l2gw
-r{toxinidir}/requirements.txt
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
whitelist_externals = sh
commands =