Skip to content

Commit 3548fa6

Browse files
hrwkeuko
authored andcommitted
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 (cherry picked from commit 497b40f)
1 parent fe872a8 commit 3548fa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker/macros.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
{% macro install_pip(packages, constraints = true) %}
3636
{%- if packages is sequence and packages|length > 0 -%}
37-
python{{ distro_python_version }} -m pip --no-cache-dir install --upgrade{{ ' ' }}
37+
SETUPTOOLS_USE_DISTUTILS=stdlib python{{ distro_python_version }} -m pip --no-cache-dir install --upgrade{{ ' ' }}
3838
{%- if constraints %}-c /requirements/upper-constraints.txt {% endif -%}
3939
{{ packages | join(' ') }}
4040
{%- else -%}

0 commit comments

Comments
 (0)