Use `python -m pip` to ensure updated pip is used 91/12591/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Fri, 14 Sep 2018 00:04:51 +0000 (20:04 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Fri, 14 Sep 2018 00:08:21 +0000 (20:08 -0400)
/usr/bin/pip is usually an OS level wrapper for pip. Calling
`python -m pip` ensures that we are getting the pip we are
installing rather than the OS local version.

Change-Id: I054d1cc0455c700e00450295cf76d925cff99f73
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
releasenotes/notes/pip-update-7b5d4d3c59c1b2e5.yaml [new file with mode: 0644]
shell/python-tools-install.sh

diff --git a/releasenotes/notes/pip-update-7b5d4d3c59c1b2e5.yaml b/releasenotes/notes/pip-update-7b5d4d3c59c1b2e5.yaml
new file mode 100644 (file)
index 0000000..708b417
--- /dev/null
@@ -0,0 +1,5 @@
+---
+fixes:
+  - |
+    Use `python -m pip` to ensure that we are using the pip version that
+    was installed rather than the OS wrapper version of pip.
index 5866ea5..c57609c 100644 (file)
@@ -19,6 +19,6 @@ 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"
+python -m pip install --user --quiet --upgrade pip~=18.0 setuptools~=40.2.0
+python -m pip install --user --quiet --upgrade -r "$REQUIREMENTS_FILE"
 pip freeze