diff options
author | Lingxian Kong <anlin.kong@gmail.com> | 2020-06-02 23:16:01 +1200 |
---|---|---|
committer | Lingxian Kong <anlin.kong@gmail.com> | 2020-06-02 23:16:01 +1200 |
commit | d8b5525fd2a544c264a86edcd0d3493709f262af (patch) | |
tree | 0c5dcd5245125cd494661ff2f2acdba9c3ace5e1 /integration/scripts/files/elements/ubuntu-guest/install.d/15-trove-dep | |
parent | 689f33b0ba2c3b18106d588b7ce162730fd7e0c3 (diff) | |
download | trove-d8b5525fd2a544c264a86edcd0d3493709f262af.tar.gz |
Change-Id: I01c11ccb247a018ae85d7f369f80c38f7e9b7b7c
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" |