cisco-ironic-contrib/pip_install
Ian Wienand d1054b19e8 Replace openstack.org git:// URLs with https://
This is a mechanically generated change to replace openstack.org
git:// URLs with https:// equivalents.

This is in aid of a planned future move of the git hosting
infrastructure to a self-hosted instance of gitea (https://gitea.io),
which does not support the git wire protocol at this stage.

This update should result in no functional change.

For more information see the thread at

 http://lists.openstack.org/pipermail/openstack-discuss/2019-March/003825.html

Change-Id: I5e3f842508497f32b125d383a7ec07944ebc23ca
2019-03-24 20:33:18 +00:00

31 lines
902 B
Bash
Executable File

#!/bin/sh
set -ex
ZUUL_CLONER=/usr/zuul-env/bin/zuul-cloner
mkdir -p .test-tars
if $(python -c "import ironic" 2> /dev/null); then
echo "Ironic already installed."
elif [ -x $ZUUL_CLONER ]; then
$ZUUL_CLONER --cache-dir /opt/git --workspace /tmp https://git.openstack.org openstack/ironic
pip install /tmp/openstack/ironic
else
( cd .test-tars && wget -N http://tarballs.openstack.org/ironic/ironic-master.tar.gz )
pip install .test-tars/ironic-master.tar.gz
fi
if $(python -c "import nova" 2> /dev/null); then
echo "Nova already installed."
elif [ -x $ZUUL_CLONER ]; then
$ZUUL_CLONER --cache-dir /opt/git --workspace /tmp https://git.openstack.org openstack/nova
pip install /tmp/openstack/nova
else
( cd .test-tars && wget -N http://tarballs.openstack.org/nova/nova-master.tar.gz )
pip install .test-tars/nova-master.tar.gz
fi
pip install -U $*
exit $?