From aecf4c51e1d6a8795931191edb1f5aae29f93b4e Mon Sep 17 00:00:00 2001 From: Michal Nasiadka Date: Wed, 2 Sep 2020 18:13:17 +0200 Subject: [PATCH] Install newer virtualenv with relaxed importlib After setuptools 50.x release - virtualenv dictated by Ussuri constraints cause an error when using --system-site-packages, installing newer virtualenv solves the issue. Virtualenv 2.0.22 (and later) introduced a change to relax importlib.resources requirements which seems to solve the issue. Change-Id: I71ba982339d5dd4306b2166d346e3e6b1f3af60e Closes-Bug: #1893920 --- docker/kolla-toolbox/Dockerfile.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/kolla-toolbox/Dockerfile.j2 b/docker/kolla-toolbox/Dockerfile.j2 index 4bda85ad76..05c11705dd 100644 --- a/docker/kolla-toolbox/Dockerfile.j2 +++ b/docker/kolla-toolbox/Dockerfile.j2 @@ -63,7 +63,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build RUN mkdir -p /requirements \ && curl -sSL -o /requirements/upper-constraints.txt https://releases.openstack.org/constraints/upper/{{ openstack_release }} \ - && {{ macros.install_pip(kolla_toolbox_pip_virtualenv_packages | customizable("pip_virtualenv_packages")) }} \ + && {{ macros.install_pip(kolla_toolbox_pip_virtualenv_packages | customizable("pip_virtualenv_packages"), constraints=false) }} \ && virtualenv --system-site-packages {{ virtualenv_path }} ENV PATH {{ virtualenv_path }}/bin:$PATH