From be802b319abf740e161d08e1f5a5a8c997c0278c Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Tue, 1 Sep 2020 13:59:21 -0700 Subject: [PATCH] Install older setuptools in puppet apply jobs We create a virtualenv to install ansible in which then runs puppet for us in our puppet apply jobs. This is pulling in setuptools 50 which then fails due to the problems setuptools 50 has with older pythons. Address this by pinning back to setuptools <50. Change-Id: I02ea466319f7cd90f73972bf5a99876d14823ac1 --- tools/prep-apply.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/prep-apply.sh b/tools/prep-apply.sh index 1f523ed585..fa5ac9fb0e 100644 --- a/tools/prep-apply.sh +++ b/tools/prep-apply.sh @@ -41,6 +41,8 @@ declare -A INTEGRATION_MODULES source $MODULE_ENV_FILE python3 -m virtualenv -p python3 --system-site-packages /tmp/apply-ansible-env +# Work around the fact that setuptools~=50 is broken +/tmp/apply-ansible-env/bin/pip install -U 'setuptools<50' /tmp/apply-ansible-env/bin/pip install ansible # Install puppet ansible_root=$(mktemp -d)