Consolidate branch setup for dependencies pulled from git
Later, we'll backport the patch into stable/liberty and change the
branches used for neutron-*/networking-* dependencies there.
Conflicts:
tools/tox_install.sh
Change-Id: I16bd097f4619c7c898b290926bcbf2f5b31356bf
(cherry picked from commit f54f7ee799
)
This commit is contained in:
parent
66f39e4e5e
commit
2b81b0548b
|
@ -14,6 +14,7 @@
|
|||
# pip install {opts} {packages}
|
||||
|
||||
ZUUL_CLONER=/usr/zuul-env/bin/zuul-cloner
|
||||
BRANCH_NAME=stable/liberty
|
||||
neutron_installed=$(echo "import neutron" | python 2>/dev/null ; echo $?)
|
||||
networking_l2gw_installed=$(echo "import networking_l2gw" | python 2>/dev/null ; echo $?)
|
||||
|
||||
|
@ -23,11 +24,11 @@ cwd=$(/bin/pwd)
|
|||
> /tmp/tox_install.txt
|
||||
|
||||
zuul_cloner () {
|
||||
export ZUUL_BRANCH=${ZUUL_BRANCH-$BRANCH}
|
||||
echo "ZUUL CLONER" >> /tmp/tox_install.txt
|
||||
cd /tmp
|
||||
$ZUUL_CLONER --cache-dir \
|
||||
/opt/git \
|
||||
--branch $BRANCH_NAME \
|
||||
git://git.openstack.org $1
|
||||
cd $1
|
||||
pip install -e .
|
||||
|
@ -36,7 +37,7 @@ zuul_cloner () {
|
|||
|
||||
pip_hardcode () {
|
||||
echo "PIP HARDCODE: $1" >> /tmp/tox_install.txt
|
||||
pip install -U -egit+https://git.openstack.org/$1
|
||||
pip install -U -egit+https://git.openstack.org/openstack/$1@$BRANCH_NAME#egg=$1
|
||||
}
|
||||
|
||||
if [ $neutron_installed -eq 0 ]; then
|
||||
|
@ -45,7 +46,7 @@ if [ $neutron_installed -eq 0 ]; then
|
|||
elif [ -x "$ZUUL_CLONER" ]; then
|
||||
zuul_cloner openstack/neutron
|
||||
else
|
||||
pip_hardcode openstack/neutron#egg=neutron
|
||||
pip_hardcode neutron
|
||||
fi
|
||||
|
||||
if [ $networking_l2gw_installed -eq 0 ]; then
|
||||
|
@ -54,7 +55,7 @@ if [ $networking_l2gw_installed -eq 0 ]; then
|
|||
elif [ -x "$ZUUL_CLONER" ]; then
|
||||
zuul_cloner openstack/networking-l2gw
|
||||
else
|
||||
pip_hardcode openstack/networking-l2gw#egg=networking-l2gw
|
||||
pip_hardcode networking-l2gw
|
||||
fi
|
||||
|
||||
pip install -U $*
|
||||
|
|
Loading…
Reference in New Issue