Switch simple-init to support python3
Depending on the version of $DIB_PYTHON_VERSION, we can either use pip / pip3 to install glean. This is helpful for newer OSes that might not want to ship python2 (pip). Change-Id: I25c5927a1eb55ee16b919dd64403184f335839b6 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
b9e322f2d3
commit
daf5a4e4bd
2 changed files with 10 additions and 2 deletions
|
@ -21,4 +21,8 @@ fi
|
|||
set -eu
|
||||
set -o pipefail
|
||||
|
||||
pip install /tmp/glean.git
|
||||
if [ "$DIB_PYTHON_VERSION" == "3" ]; then
|
||||
pip3 install /tmp/glean.git
|
||||
else
|
||||
pip install /tmp/glean.git
|
||||
fi
|
||||
|
|
|
@ -21,4 +21,8 @@ fi
|
|||
set -eu
|
||||
set -o pipefail
|
||||
|
||||
pip install glean
|
||||
if [ "$DIB_PYTHON_VERSION" == "3" ]; then
|
||||
pip3 install glean
|
||||
else
|
||||
pip install glean
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue