Create the venv with the right python version
to ensure that the venv is created with the right python version, we pass the right parameter when creating it. We remove it in the later task as the argument only applies when actually creating it. Change-Id: Ief645ad97a249fcb8545cd2d11edac6984d0014d
This commit is contained in:
parent
2820d9ec0b
commit
279ddb56da
|
@ -43,7 +43,12 @@
|
|||
- "{{ venv_build_wheel_path }}"
|
||||
|
||||
- name: Create the virtualenv (if it does not exist)
|
||||
command: "virtualenv --no-site-packages {{ _venv_create_no_download }} {{ venv_install_destination_path }}"
|
||||
command: >-
|
||||
virtualenv
|
||||
--no-site-packages
|
||||
{{ _venv_create_no_download }}
|
||||
--python={{ venv_python_executable }}
|
||||
{{ venv_install_destination_path }}
|
||||
args:
|
||||
creates: "{{ venv_install_destination_path }}/bin/activate"
|
||||
|
||||
|
@ -80,7 +85,6 @@
|
|||
name: "{{ venv_pip_packages }}"
|
||||
state: "{{ venv_pip_package_state }}"
|
||||
virtualenv: "{{ venv_install_destination_path }}"
|
||||
virtualenv_python: "{{ venv_python_executable }}"
|
||||
extra_args: >-
|
||||
--find-links {{ venv_build_wheel_path }}/
|
||||
--log /var/log/python_venv_build.log
|
||||
|
|
Loading…
Reference in New Issue