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:
parent
279ddb56da
commit
c4d466ad40
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue