From a69d4e3a1b365a4745301ee41c86ee25768c8618 Mon Sep 17 00:00:00 2001 From: Thanh Ha Date: Fri, 14 Sep 2018 11:29:55 -0400 Subject: [PATCH] Split pip and setuptools install to 2 calls We seem to be getting more success installing pip and setuptools this way and hopefully fixes the post-build scripts to not require all jobs that use python to need to update their virtualenv calls. Change-Id: I0fba7ba0f574cb29561fcfdb1404272c67165582 Signed-off-by: Thanh Ha --- releasenotes/notes/fix-pip-install-9986f896b122d952.yaml | 5 +++++ shell/python-tools-install.sh | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/fix-pip-install-9986f896b122d952.yaml diff --git a/releasenotes/notes/fix-pip-install-9986f896b122d952.yaml b/releasenotes/notes/fix-pip-install-9986f896b122d952.yaml new file mode 100644 index 00000000..903240eb --- /dev/null +++ b/releasenotes/notes/fix-pip-install-9986f896b122d952.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Fix `pip install pip setuptools` which seems to fail against the Nexus 3 + proxy. Run them as separate calls to make things happier. diff --git a/shell/python-tools-install.sh b/shell/python-tools-install.sh index dbfa1310..c607dcb7 100644 --- a/shell/python-tools-install.sh +++ b/shell/python-tools-install.sh @@ -20,6 +20,7 @@ python-openstackclient~=3.16.0 EOF # Use `python -m pip` to ensure we are using the latest version of pip -python -m pip install --user --quiet --upgrade pip~=18.0 setuptools~=40.2.0 +python -m pip install --user --quiet --upgrade pip +python -m pip install --user --quiet --upgrade setuptools python -m pip install --user --quiet --upgrade -r "$REQUIREMENTS_FILE" pip freeze -- 2.16.6