X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fpython-tools-install.sh;fp=shell%2Fpython-tools-install.sh;h=5866ea5ce488ee2e844d0b5559f1dbc6c48f1794;hb=b3c4fefa00bb18fe2d8ae6f4ba3e2bf0abd154c5;hp=0000000000000000000000000000000000000000;hpb=33acf6e113cf0f9fa8ce4bfa1df9df5473c28c41;p=releng%2Fglobal-jjb.git diff --git a/shell/python-tools-install.sh b/shell/python-tools-install.sh new file mode 100644 index 00000000..5866ea5c --- /dev/null +++ b/shell/python-tools-install.sh @@ -0,0 +1,24 @@ +#!/bin/bash -l +# SPDX-License-Identifier: EPL-1.0 +############################################################################## +# Copyright (c) 2018 The Linux Foundation and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html +############################################################################## + +set -eux -o pipefail + +REQUIREMENTS_FILE=$(mktemp /tmp/requirements-XXXX.txt) + +cat << EOF > "$REQUIREMENTS_FILE" +lftools~=0.15.0 +python-heatclient~=1.16.1 +python-openstackclient~=3.16.0 +EOF + +pip install --user --quiet --upgrade pip==18.0 setuptools==40.0.0 +pip install --user --quiet --upgrade -r "$REQUIREMENTS_FILE" +pip freeze