
Version caps on pip/pbr/wheel/setuptools are a disconnect between the incubator and upstream infra tooling which updates everything everytime. Since we can't do sensible deps on them (due to setup_requires behaviour), we need to update them in advance. Change-Id: Iaeaf5affd55e6b6ea98dc65fb64b997aa6565f6d
39 lines
1.1 KiB
Bash
Executable File
39 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
set -eu
|
|
|
|
BASE=$(readlink -f $(dirname $0)/..)
|
|
VENV_HOME=$BASE/openstack-tools
|
|
|
|
if [ ! -f $VENV_HOME/bin/activate ]; then
|
|
virtualenv --setuptools $VENV_HOME
|
|
fi
|
|
|
|
# NOTE(derekh): we need to use +u to workaround an issue with the activate script
|
|
# /opt/stack/new/tripleo-incubator/openstack-tools/bin/activate: line 8: _OLD_VIRTUAL_PATH: unbound variable
|
|
set +u
|
|
source $VENV_HOME/bin/activate
|
|
set -u
|
|
|
|
# Use latest versions of build/environment tooling.
|
|
pip install -U pip
|
|
pip install -U wheel setuptools pbr
|
|
|
|
pip install -U \
|
|
os-apply-config \
|
|
os-cloud-config \
|
|
python-barbicanclient \
|
|
python-ceilometerclient \
|
|
python-cinderclient \
|
|
python-glanceclient \
|
|
python-heatclient \
|
|
python-ironicclient \
|
|
python-neutronclient \
|
|
python-novaclient \
|
|
python-openstackclient \
|
|
python-swiftclient
|
|
|
|
for tool in os-apply-config cinder nova glance heat neutron swift ironic ceilometer openstack init-keystone generate-keystone-pki register-nodes setup-neutron; do
|
|
ln -sf $VENV_HOME/bin/$tool $BASE/scripts/$tool ;
|
|
done
|
|
echo "Installed openstack client tool symlinks in $BASE/scripts"
|