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=d87ce091fe93fff99e25343a69baaa26c186ca85;hp=0000000000000000000000000000000000000000;hpb=9cb04c8a479acc4e67891bdf425c62afae7445fa;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