From 20835d20b98d95c1064b3ba449d76c7f7edbd30e Mon Sep 17 00:00:00 2001 From: Dmitry Tantsur Date: Wed, 18 Sep 2024 14:34:06 +0200 Subject: [PATCH] Fix missed occurrence of SETUPTOOLS_USE_DISTUTILS Change-Id: I325d146b829d84abdb01932b02ebab81315e45c5 --- playbooks/roles/bifrost-pip-install/tasks/main.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/playbooks/roles/bifrost-pip-install/tasks/main.yml b/playbooks/roles/bifrost-pip-install/tasks/main.yml index a0eacf830..7825fc75a 100644 --- a/playbooks/roles/bifrost-pip-install/tasks/main.yml +++ b/playbooks/roles/bifrost-pip-install/tasks/main.yml @@ -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: