Upgrade pip and friends in source images
New pip has nice features for detection of conflicting requirements. When installing from PyPI, as we do in source images, running the latest pip+setuptools+wheel is recommended. Co-authored-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> Change-Id: I4ae3a82cc796a60450c2a35beba32972964bc5d0
This commit is contained in:
parent
1a9d5a1a42
commit
a41001f714
@ -94,7 +94,8 @@ ENV PATH {{ virtualenv_path }}/bin:$PATH
|
||||
] %}
|
||||
|
||||
COPY requirements.yml /var/lib/ansible/
|
||||
RUN {{ macros.install_pip(kolla_toolbox_pip_packages | customizable("pip_packages")) }} \
|
||||
RUN {{ macros.install_pip(['pip', 'wheel', 'setuptools']) }} \
|
||||
&& {{ macros.install_pip(kolla_toolbox_pip_packages | customizable("pip_packages")) }} \
|
||||
&& mkdir -p /etc/ansible /usr/share/ansible \
|
||||
&& echo 'localhost ansible_connection=local ansible_python_interpreter={{ virtualenv_path }}/bin/python' > /etc/ansible/hosts \
|
||||
&& sed -i 's| "identity_api_version": "2.0",| "identity_api_version": "3",|' {{ os_client_config }} \
|
||||
|
@ -328,7 +328,8 @@ RUN ln -s openstack-base-source/* /requirements \
|
||||
|
||||
ENV PATH /var/lib/kolla/venv/bin:$PATH
|
||||
|
||||
RUN {{ macros.install_pip(openstack_base_pip_packages | customizable("pip_packages")) }}
|
||||
RUN {{ macros.install_pip(['pip', 'wheel', 'setuptools']) }} \
|
||||
&& {{ macros.install_pip(openstack_base_pip_packages | customizable("pip_packages")) }}
|
||||
|
||||
{% endif %}
|
||||
|
||||
|
6
releasenotes/notes/upgrade-pip-44352805d60bbf7f.yaml
Normal file
6
releasenotes/notes/upgrade-pip-44352805d60bbf7f.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
other:
|
||||
- |
|
||||
``kolla-toolbox`` and all images derived from ``openstack-base`` one have
|
||||
basic Python packages (``pip``, ``wheel``, ``setuptools``) upgraded to latest
|
||||
versions.
|
Loading…
x
Reference in New Issue
Block a user