Skip to content

Commit

Permalink
Setup: Fix ImportError: cannot import name 'tarfile' from 'backports'
Browse files Browse the repository at this point in the history
/path/to/lib/python3.8/site-packages/setuptools/_vendor/jaraco/context.py:17: ImportError

ImportError: cannot import name 'tarfile' from 'backports' (/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/backports/__init__.py)
  • Loading branch information
amotl committed Jul 17, 2024
1 parent 2905689 commit 923073b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,14 @@ jobs:
- name: Set up project
run: |
# `setuptools 0.64.0` adds support for editable install hooks (PEP 660).
# `setuptools 64` adds support for editable install hooks (PEP 660).
# https://github.com/pypa/setuptools/blob/main/CHANGES.rst#v6400
pip install "setuptools>=64" --upgrade
# `setuptools 71` significantly re-vendors setuptools packages, causing hiccups on Python 3.8.
# https://github.com/pypa/setuptools/pull/4457
pip install "setuptools>=64,<71" --upgrade
# Install package in editable mode.
pip install --use-pep517 --prefer-binary --editable=.[full,test,develop]
pip install --use-pep517 --prefer-binary --editable='.[full,test,develop]'
- name: Run linter and software tests
env:
Expand Down

0 comments on commit 923073b

Please sign in to comment.