Add the setuptools workaround

Also stop supporting Python 2 explicitly.

Change-Id: Ifba6afa9fcbad6d9517d09713ab17bac85879163
This commit is contained in:
Dmitry Tantsur 2020-09-02 11:07:19 +02:00
parent f0888f7557
commit 9c93e986e1
1 changed files with 7 additions and 2 deletions

View File

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