From 601074a8e86729848cce5207a389a35a660ecec3 Mon Sep 17 00:00:00 2001 From: Federico Capoano Date: Wed, 24 Mar 2021 12:49:18 -0500 Subject: [PATCH] [fix] Disabled pep517 on Ubuntu 18.04 #263 Without this we get the following error on Ubuntu 18: AttributeError: module 'setuptools.build_meta' has no attribute '__legacy__' Fixes #263 --- tasks/pip.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tasks/pip.yml b/tasks/pip.yml index 00f50ea2..f1892b1c 100644 --- a/tasks/pip.yml +++ b/tasks/pip.yml @@ -140,6 +140,11 @@ pip: name: "{{ openwisp2_extra_python_packages }}" state: latest + # fixes bug #263, remove when support for Ubuntu 18.04 is dropped + extra_args: | + {% if ansible_distribution == 'Ubuntu' and ansible_distribution_version is version_compare('18.04', 'le') %} + --no-use-pep517 + {% endif %} virtualenv: "{{ virtualenv_path }}" virtualenv_python: "{{ openwisp2_python }}" virtualenv_site_packages: true