aboutsummaryrefslogtreecommitdiff
path: root/tests/script/bootstrap
diff options
context:
space:
mode:
authorJohn Whittington <git@jbrengineering.co.uk>2020-08-05 18:22:29 +0200
committerJohn Whittington <git@jbrengineering.co.uk>2020-08-05 18:22:29 +0200
commit517fe4a632b57a6c4ee2754bbb06470055427a5e (patch)
tree982ca56447615221c9a66de551cb2f79e4fc973d /tests/script/bootstrap
parent26e34cd6f2471f04ba097001a215caed12a8574a (diff)
parent88dc641c8d582f28243141052517fe03e92e6687 (diff)
Merge remote-tracking branch 'sej7278/python3'
Diffstat (limited to 'tests/script/bootstrap')
-rw-r--r--tests/script/bootstrap/common.sh18
-rw-r--r--tests/script/bootstrap/pip-requirements.txt2
2 files changed, 10 insertions, 10 deletions
diff --git a/tests/script/bootstrap/common.sh b/tests/script/bootstrap/common.sh
index c3cd90e..20c1037 100644
--- a/tests/script/bootstrap/common.sh
+++ b/tests/script/bootstrap/common.sh
@@ -160,22 +160,22 @@ if [ -z $COMMON_SOURCED ]; then
fi
fi
- if ! command -v python >/dev/null 2>&1; then
+ if ! command -v python3 >/dev/null 2>&1; then
echo "Installing Python..."
- _install "python"
+ _install "python3"
fi
- if ! command -v pip >/dev/null 2>&1; then
+ if ! command -v pip3 >/dev/null 2>&1; then
echo "Installing Pip..."
- if ! command -v easy_install >/dev/null 2>&1; then
- _install "python-setuptools"
+ if ! command -v easy_install3 >/dev/null 2>&1; then
+ _install "python3-setuptools"
fi
- if ! command -v easy_install >/dev/null 2>&1; then
- die "easy_install not available, can't install pip"
+ if ! command -v easy_install3 >/dev/null 2>&1; then
+ die "easy_install3 not available, can't install pip3"
fi
- $SUDO_CMD easy_install pip
+ $SUDO_CMD easy_install3 pip3
fi
PIP_SUDO_CMD=
@@ -184,7 +184,7 @@ if [ -z $COMMON_SOURCED ]; then
PIP_SUDO_CMD=$SUDO_CMD
fi
- $PIP_SUDO_CMD pip install --src dependencies --pre -Ur $BOOTSTRAP_DIR/pip-requirements.txt
+ $PIP_SUDO_CMD pip3 install --src dependencies --pre -Ur $BOOTSTRAP_DIR/pip-requirements.txt
COMMON_SOURCED=1
fi
diff --git a/tests/script/bootstrap/pip-requirements.txt b/tests/script/bootstrap/pip-requirements.txt
index 8313187..205196f 100644
--- a/tests/script/bootstrap/pip-requirements.txt
+++ b/tests/script/bootstrap/pip-requirements.txt
@@ -1 +1 @@
-pyserial==2.7
+pyserial==3.4