From 9c93e986e1362436376b3d832630f947b7c50fbb Mon Sep 17 00:00:00 2001 From: Dmitry Tantsur Date: Wed, 2 Sep 2020 11:07:19 +0200 Subject: [PATCH] Add the setuptools workaround Also stop supporting Python 2 explicitly. Change-Id: Ifba6afa9fcbad6d9517d09713ab17bac85879163 --- playbooks/integration/pre.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/playbooks/integration/pre.yaml b/playbooks/integration/pre.yaml index 222e2a6..0f076e7 100644 --- a/playbooks/integration/pre.yaml +++ b/playbooks/integration/pre.yaml @@ -12,13 +12,18 @@ requirements: "{{ metalsmith_src_dir }}/metalsmith/requirements.txt" extra_args: -c {{ metalsmith_src_dir }}/requirements/upper-constraints.txt become: true + environment: + # NOTE(dtantsur): https://github.com/pypa/setuptools/issues/2353 + SETUPTOOLS_USE_DISTUTILS: stdlib vars: - ansible_python_interpreter: /usr/bin/{{ metalsmith_python | default('python') }} + ansible_python_interpreter: /usr/bin/python3 - name: Install metalsmith pip: name: "{{ metalsmith_src_dir }}/metalsmith" editable: true become: true + environment: + SETUPTOOLS_USE_DISTUTILS: stdlib vars: - ansible_python_interpreter: /usr/bin/{{ metalsmith_python | default('python') }} + ansible_python_interpreter: /usr/bin/python3