Add --always-copy when building the venv

As we do in the repo_build, so shall we do here.

Change-Id: I9c3f7fbc772614b49dfefedc67d27c14240f80ef
This commit is contained in:
Jesse Pretorius 2018-08-27 23:09:42 +01:00
parent 279ddb56da
commit c4d466ad40
1 changed files with 4 additions and 0 deletions

View File

@ -42,12 +42,16 @@
- "{{ venv_build_archive_path }}"
- "{{ venv_build_wheel_path }}"
# NOTE(odyssey4me):
# Not using --always-copy for CentOS/SuSE due to
# https://github.com/pypa/virtualenv/issues/565
- name: Create the virtualenv (if it does not exist)
command: >-
virtualenv
--no-site-packages
{{ _venv_create_no_download }}
--python={{ venv_python_executable }}
{{ (ansible_pkg_mgr == 'apt') | ternary('--always-copy', '') }}
{{ venv_install_destination_path }}
args:
creates: "{{ venv_install_destination_path }}/bin/activate"