Browse Source

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
changes/48/749548/4
Michal Nasiadka 4 weeks ago
parent
commit
aecf4c51e1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      docker/kolla-toolbox/Dockerfile.j2

+ 1
- 1
docker/kolla-toolbox/Dockerfile.j2 View File

@@ -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


Loading…
Cancel
Save