diff options
| author | Marcin Juszkiewicz <marcin@juszkiewicz.com.pl> | 2022-03-30 09:52:58 +0200 |
|---|---|---|
| committer | Marcin Juszkiewicz <marcin@juszkiewicz.com.pl> | 2022-03-30 09:52:58 +0200 |
| commit | 497b40fe5a4984b959c63f0c5320311f5810192e (patch) | |
| tree | ca11d205c9a1320185dbef726faa1d99d04e0b03 /docker | |
| parent | c572fc61d02071a4fc5a950d12b783e9b8a998ae (diff) | |
| download | kolla-497b40fe5a4984b959c63f0c5320311f5810192e.tar.gz kolla-497b40fe5a4984b959c63f0c5320311f5810192e.zip | |
macros/pip: revert to old setuptools way
AArch64 builds fail with "AttributeError: install_layout". This is due
to setuptools issue in Debian:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1003252
Switching setuptools to use distutils from stdlib makes error go away.
Backports: Xena, Wallaby (this is where it was first reported).
Change-Id: I97102e18e4ec47bca94d17d964936f039580b06b
Diffstat (limited to 'docker')
| -rw-r--r-- | docker/macros.j2 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/macros.j2 b/docker/macros.j2 index 346e1dcb3..2c7cb2bef 100644 --- a/docker/macros.j2 +++ b/docker/macros.j2 @@ -34,7 +34,7 @@ {% macro install_pip(packages, constraints = true) %} {%- if packages is sequence and packages|length > 0 -%} - python3 -m pip --no-cache-dir install --upgrade{{ ' ' }} + SETUPTOOLS_USE_DISTUTILS=stdlib python3 -m pip --no-cache-dir install --upgrade{{ ' ' }} {%- if constraints %}-c /requirements/upper-constraints.txt {% endif -%} {{ packages | join(' ') }} {%- else -%} |
