Skip to content

Commit

Permalink
macros/pip: revert to old setuptools way
Browse files Browse the repository at this point in the history
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
  • Loading branch information
hrw committed Mar 30, 2022
1 parent c572fc6 commit 497b40f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/macros.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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 -%}
Expand Down

0 comments on commit 497b40f

Please sign in to comment.