aboutsummaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <marcin@juszkiewicz.com.pl>2022-03-30 09:52:58 +0200
committerMarcin Juszkiewicz <marcin@juszkiewicz.com.pl>2022-03-30 09:52:58 +0200
commit497b40fe5a4984b959c63f0c5320311f5810192e (patch)
treeca11d205c9a1320185dbef726faa1d99d04e0b03 /docker
parentc572fc61d02071a4fc5a950d12b783e9b8a998ae (diff)
downloadkolla-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.j22
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 -%}