Skip to content

Commit

Permalink
[fix] Disabled pep517 on Ubuntu 18.04 #263
Browse files Browse the repository at this point in the history
Without this we get the following error on Ubuntu 18:
AttributeError: module 'setuptools.build_meta' has no attribute '__legacy__'

Fixes #263
  • Loading branch information
nemesifier committed Mar 24, 2021
1 parent fd30bf0 commit 601074a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tasks/pip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 601074a

Please sign in to comment.