diff options
Diffstat (limited to 'integration/scripts/files/elements/ubuntu-guest/install.d/15-trove-dep')
-rwxr-xr-x | integration/scripts/files/elements/ubuntu-guest/install.d/15-trove-dep | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/integration/scripts/files/elements/ubuntu-guest/install.d/15-trove-dep b/integration/scripts/files/elements/ubuntu-guest/install.d/15-trove-dep index 7a0430e1..25b48459 100755 --- a/integration/scripts/files/elements/ubuntu-guest/install.d/15-trove-dep +++ b/integration/scripts/files/elements/ubuntu-guest/install.d/15-trove-dep @@ -9,10 +9,17 @@ set -o xtrace export DEBIAN_FRONTEND=noninteractive apt-get --allow-unauthenticated -y install \ libxml2-dev libxslt1-dev libffi-dev libssl-dev libyaml-dev \ - python3 python3-dev python3-pip python3-sqlalchemy python3-setuptools + python3-pip python3-sqlalchemy python3-setuptools -# pick up the requirements file left for us by -# extra-data.d/15-reddwarf-dep +# Install python 3.7, some python lib (e.g. oslo.concurrency>4.0.0) requries +# Python 3.7 +add-apt-repository --yes ppa:deadsnakes/ppa +apt update +apt install -y python3.7 python3.7-dev + +update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.7 10 +python3.5 -m pip install pip==9.0.3 +python3.5 -m pip install -U wheel setuptools TMP_HOOKS_DIR="/tmp/in_target.d" @@ -21,10 +28,10 @@ if [ -f ${TMP_HOOKS_DIR}/upper-constraints.txt ]; then UPPER_CONSTRAINTS=" -c ${TMP_HOOKS_DIR}/upper-constraints.txt" fi -pip3 install pip==9.0.3 -pip3 install wheel -pip3 install --upgrade -r ${TMP_HOOKS_DIR}/requirements.txt ${UPPER_CONSTRAINTS} +python3.7 -m pip install pip==9.0.3 +python3.7 -m pip install -U wheel setuptools +python3.7 -m pip install --upgrade -r ${TMP_HOOKS_DIR}/requirements.txt ${UPPER_CONSTRAINTS} echo "diagnostic pip freeze output follows" -pip3 freeze +python3.7 -m pip freeze echo "diagnostic pip freeze output above" |