From: Thanh Ha Date: Fri, 14 Sep 2018 15:29:55 +0000 (-0400) Subject: Split pip and setuptools install to 2 calls X-Git-Tag: v0.25.0~6 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F07%2F12607%2F1;p=releng%2Fglobal-jjb.git 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 --- 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