Merge "Constrain the pip/setuptools/wheel versions in the venvs"
This commit is contained in:
commit
3f96d62164
|
@ -34,6 +34,7 @@
|
|||
src: "venv-build-script.sh.j2"
|
||||
dest: "/opt/venv-build-script.sh"
|
||||
mode: "0755"
|
||||
register: _create_venv_build_script
|
||||
|
||||
- name: Create venv build options files
|
||||
template:
|
||||
|
@ -48,6 +49,7 @@
|
|||
executable: "/bin/bash"
|
||||
when:
|
||||
- (item | changed) or
|
||||
(_create_venv_build_script | changed) or
|
||||
(ansible_local['openstack_ansible']['repo_build']['need_venv_build'] | bool)
|
||||
with_items:
|
||||
- "{{ _create_venv_options_files.results }}"
|
||||
|
|
|
@ -85,7 +85,9 @@ pushd "{{ repo_build_venv_dir }}" &>/dev/null
|
|||
${ROLE_VENV_PATH}/bin/python {{ repo_build_release_path }}/get-pip.py \
|
||||
pip setuptools wheel \
|
||||
--find-links {{ repo_build_release_path }} \
|
||||
${PIP_INSTALL_OPTIONS} &>${ROLE_VENV_LOG}
|
||||
${PIP_INSTALL_OPTIONS} \
|
||||
--constraint {{ repo_build_release_path }}/requirements_constraints.txt \
|
||||
&>${ROLE_VENV_LOG}
|
||||
|
||||
# Install the packages into the venv
|
||||
${ROLE_VENV_PATH}/bin/pip install \
|
||||
|
|
Loading…
Reference in New Issue