diff options
author | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2022-05-05 17:48:59 +0200 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2022-05-05 17:48:59 +0200 |
commit | 0f52b95f46318e44e8ed8a7b8fcb660495a86935 (patch) | |
tree | 00d5459399fb6474ea428da84c71797f8bc621d0 /packer/provision | |
parent | e084aa2f83fc818933083faf81ca394aa5e6904f (diff) |
Fix PyYAML issue with pip
Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Change-Id: I3034b32e0779c41b83804f1c96dbafea248bbbbf
Diffstat (limited to 'packer/provision')
-rw-r--r-- | packer/provision/agl_dependencies.sh | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/packer/provision/agl_dependencies.sh b/packer/provision/agl_dependencies.sh index 6b71887f..dc5331ad 100644 --- a/packer/provision/agl_dependencies.sh +++ b/packer/provision/agl_dependencies.sh @@ -133,8 +133,14 @@ sudo pip3 install mdlint # releng-scripts needs latest (stable v2.9) jinja2 sudo pip install --force-reinstall --ignore-installed jinja2 sudo pip install --upgrade jinja2 +sudo pip install --force-reinstall --ignore-installed PyYAML +sudo pip install --upgrade PyYAML + sudo pip3 install --force-reinstall --ignore-installed jinja2 sudo pip3 install --upgrade jinja2 +sudo pip3 install --force-reinstall --ignore-installed PyYAML +sudo pip3 install --upgrade PyYAML + # updates for cloud-init sudo pip3 install --upgrade oauthlib @@ -204,8 +210,12 @@ EOF curl -L "https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh" | sudo bash -DEBIAN_FRONTEND=noninteractive apt-get update +DEBIAN_FRONTEND=noninteractive apt-get update DEBIAN_FRONTEND=noninteractive apt-get install gitlab-runner +# workaround for missing file that made pip bail out +sudo touch /usr/local/lib/python3.6/dist-packages/PyYAML-6.0.dist-info/METADATA || true + + exit 0 |