Don't use pip3 wrapper script 08/121708/1
authorJim Hahn <jrh3@att.com>
Fri, 4 Jun 2021 17:22:49 +0000 (13:22 -0400)
committerJim Hahn <jrh3@att.com>
Fri, 4 Jun 2021 17:24:59 +0000 (13:24 -0400)
The pip3 script generates a warning saying to use "python3 -m pip"
instead.  Modified the code as such.

Issue-ID: POLICY-3155
Change-Id: I852583bea88b6d4b969a1aba20e7b9193fa24732
Signed-off-by: Jim Hahn <jrh3@att.com>
csit/apex-pdp/plans/setup.sh
csit/api/plans/setup.sh
csit/distribution/plans/setup.sh
csit/drools-applications/plans/setup.sh
csit/drools-pdp/plans/setup.sh
csit/include-raw-integration-install-robotframework.sh
csit/pap/plans/setup.sh
csit/prepare-csit.sh
csit/xacml-pdp/plans/setup.sh

index 89f780a..a81e944 100644 (file)
@@ -23,9 +23,9 @@
 source ${SCRIPTS}/get-branch-mariadb.sh
 
 echo "Uninstall docker-py and reinstall docker."
-pip3 uninstall -y docker-py
-pip3 uninstall -y docker
-pip3 install -U docker
+python3 -m pip uninstall -y docker-py
+python3 -m pip uninstall -y docker
+python3 -m pip install -U docker
 
 sudo apt-get -y install libxml2-utils
 
index 28d08b7..d20540d 100644 (file)
@@ -22,9 +22,9 @@
 source ${SCRIPTS}/get-branch-mariadb.sh
 
 echo "Uninstall docker-py and reinstall docker."
-pip3 uninstall -y docker-py
-pip3 uninstall -y docker
-pip3 install -U docker
+python3 -m pip uninstall -y docker-py
+python3 -m pip uninstall -y docker
+python3 -m pip install -U docker
 
 
 sudo apt-get -y install libxml2-utils
index 54ee68f..8fc2b9a 100644 (file)
@@ -23,9 +23,9 @@
 source ${SCRIPTS}/get-branch-mariadb.sh
 
 echo "Uninstall docker-py and reinstall docker."
-pip3 uninstall -y docker-py
-pip3 uninstall -y docker
-pip3 install -U docker
+python3 -m pip uninstall -y docker-py
+python3 -m pip uninstall -y docker
+python3 -m pip install -U docker
 
 sudo apt-get -y install libxml2-utils
 
index f8ca632..097b31c 100755 (executable)
@@ -20,9 +20,9 @@
 source ${SCRIPTS}/get-branch-mariadb.sh
 
 echo "Uninstall docker-py and reinstall docker."
-pip3 uninstall -y docker-py
-pip3 uninstall -y docker
-pip3 install -U docker
+python3 -m pip uninstall -y docker-py
+python3 -m pip uninstall -y docker
+python3 -m pip install -U docker
 
 sudo apt-get -y install libxml2-utils
 
index 3f3624f..6b02e76 100755 (executable)
@@ -22,9 +22,9 @@ source ${SCRIPTS}/get-branch-mariadb.sh
 # OS upgrades
 
 echo "Uninstall docker-py and reinstall docker."
-pip3 uninstall -y docker-py
-pip3 uninstall -y docker
-pip3 install -U docker
+python3 -m pip uninstall -y docker-py
+python3 -m pip uninstall -y docker
+python3 -m pip install -U docker
 
 sudo apt-get -y install libxml2-utils
 
index 8375e73..ca589b4 100644 (file)
@@ -3,6 +3,7 @@
 ##############################################################################
 # Copyright (c) 2015 The Linux Foundation and others.
 # Modification Copyright 2021. Nordix Foundation.
+# Modification Copyright 2021 AT&T Intellectual Property. All rights reserved.
 #
 # All rights reserved. This program and the accompanying materials
 # are made available under the terms of the Eclipse Public License v1.0
@@ -31,4 +32,4 @@ python3 -m pip install --upgrade pip
 echo "Installing Python Requirements"
 python3 -m pip install -r pylibs.txt
 odltools -V
-pip3 freeze
+python3 -m pip freeze
index 97cdb30..f65e857 100644 (file)
@@ -22,9 +22,9 @@
 source ${SCRIPTS}/get-branch-mariadb.sh
 
 echo "Uninstall docker-py and reinstall docker."
-pip3 uninstall -y docker-py
-pip3 uninstall -y docker
-pip3 install -U docker
+python3 -m pip uninstall -y docker-py
+python3 -m pip uninstall -y docker
+python3 -m pip install -U docker
 
 sudo apt-get -y install libxml2-utils
 bash ${SCRIPTS}/get-models-examples.sh
index e154a12..9625c48 100755 (executable)
@@ -39,6 +39,6 @@ fi
 # install eteutils
 mkdir -p ${ROBOT_VENV}/src/onap
 rm -rf ${ROBOT_VENV}/src/onap/testsuite
-pip3 install --upgrade --extra-index-url="https://nexus3.onap.org/repository/PyPi.staging/simple" 'robotframework-onap==0.5.1.*' --pre
+python3 -m pip install --upgrade --extra-index-url="https://nexus3.onap.org/repository/PyPi.staging/simple" 'robotframework-onap==0.5.1.*' --pre
 
-pip3 freeze
+python3 -m pip freeze
index cf369ab..93ce9bf 100644 (file)
@@ -20,9 +20,9 @@
 source ${SCRIPTS}/get-branch-mariadb.sh
 
 echo "Uninstall docker-py and reinstall docker."
-pip3 uninstall -y docker-py
-pip3 uninstall -y docker
-pip3 install -U docker
+python3 -m pip uninstall -y docker-py
+python3 -m pip uninstall -y docker
+python3 -m pip install -U docker
 
 sudo apt-get -y install libxml2-utils
 bash ${SCRIPTS}/get-models-examples.sh