Fix missed occurrence of SETUPTOOLS_USE_DISTUTILS

Change-Id: I325d146b829d84abdb01932b02ebab81315e45c5
This commit is contained in:
Dmitry Tantsur 2024-09-18 14:34:06 +02:00
parent a453e2cfe2
commit 20835d20b9
No known key found for this signature in database
GPG Key ID: 315B2AF9FD216C60

View File

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