Merge "Fix missed occurrence of SETUPTOOLS_USE_DISTUTILS"

This commit is contained in:
Zuul 2024-09-19 17:38:11 +00:00 committed by Gerrit Code Review
commit 7b5773450c

View File

@ -45,9 +45,7 @@
retries: "{{ pip_install_retries }}" retries: "{{ pip_install_retries }}"
delay: "{{ pip_install_delay }}" delay: "{{ pip_install_delay }}"
when: not source_install | bool when: not source_install | bool
environment: environment: "{{ (bifrost_venv_env | combine({'SETUPTOOLS_USE_DISTUTILS': 'stdlib'})) if ansible_facts.python_version is version('3.12', '<') else bifrost_venv_env }}"
# NOTE(dtantsur): https://github.com/pypa/setuptools/issues/2353
SETUPTOOLS_USE_DISTUTILS: stdlib
- name: "Install requirements from {{ sourcedir }} using pip" - name: "Install requirements from {{ sourcedir }} using pip"
pip: pip: