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
This commit is contained in:
Clark Boylan 2020-09-01 13:59:21 -07:00
parent c4d74d2536
commit be802b319a

View File

@ -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)