From 8977c314891f7854cbaaafda25cf51edf9eda21f Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Thu, 25 Feb 2021 17:57:54 +0100 Subject: [PATCH] set the lang before running the pip tasks. --- tasks/py3_el.yml | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/tasks/py3_el.yml b/tasks/py3_el.yml index b82fa92..a2c9277 100644 --- a/tasks/py3_el.yml +++ b/tasks/py3_el.yml @@ -25,30 +25,42 @@ state: latest when: not pip3_path_executable.stat.exists - - name: Install a list of binary pip3 packages in wheels format + - name: Install a list of binary pip3 packages in wheels format using /usr/local/bin/pip{{ py3_env_major_version }} pip: executable=/usr/local/bin/pip{{ py3_env_major_version }} name={{ py3_env_wheel_pip_pkgs }} state={{ py3_pip_pkgs_state }} + environment: + LANG: en_US.UTF-8 when: pip3_path_executable.stat.exists - - name: Install a list of binary pip3 packages in wheels format + - name: Install a list of binary pip3 packages in wheels format using /usr/bin/pip{{ py3_env_major_version }} pip: executable=/usr/bin/pip{{ py3_env_major_version }} name={{ py3_env_wheel_pip_pkgs }} state={{ py3_pip_pkgs_state }} + environment: + LANG: en_US.UTF-8 when: not pip3_path_executable.stat.exists - - name: Install a list of versioned pip3 packages on EL + - name: Install a list of versioned pip3 packages on EL using /usr/local/bin/pip{{ py3_env_major_version }} pip: executable=/usr/local/bin/pip{{ py3_env_major_version }} name={{ item.pkg }} version={{ item.version }} extra_args={{ item.extra_args | default('') }} with_items: '{{ py3_env_versioned_pip_pkgs | default ([]) }}' + environment: + LANG: en_US.UTF-8 when: pip3_path_executable.stat.exists - - name: Install a list of versioned pip3 packages on EL + - name: Install a list of versioned pip3 packages on EL using /usr/bin/pip{{ py3_env_major_version }} pip: executable=/usr/bin/pip{{ py3_env_major_version }} name={{ item.pkg }} version={{ item.version }} extra_args={{ item.extra_args | default('') }} with_items: '{{ py3_env_versioned_pip_pkgs | default ([]) }}' + environment: + LANG: en_US.UTF-8 when: not pip3_path_executable.stat.exists - - name: Install a list of pip3 packages on EL + - name: Install a list of pip3 packages on EL using /usr/local/bin/pip{{ py3_env_major_version }} pip: executable=/usr/local/bin/pip{{ py3_env_major_version }} name={{ py3_env_pip_pkgs }} state={{ py3_pip_pkgs_state }} + environment: + LANG: en_US.UTF-8 when: pip3_path_executable.stat.exists - - name: Install a list of pip3 packages on EL + - name: Install a list of pip3 packages on EL using /usr/bin/pip{{ py3_env_major_version } pip: executable=/usr/bin/pip{{ py3_env_major_version }} name={{ py3_env_pip_pkgs }} state={{ py3_pip_pkgs_state }} + environment: + LANG: en_US.UTF-8 when: not pip3_path_executable.stat.exists when: py3_env_install