GitHub CI: ensure setuptools is installed
authorIustin Pop <iustin@k1024.org>
Sun, 17 Dec 2023 21:30:25 +0000 (22:30 +0100)
committerIustin Pop <iustin@k1024.org>
Sun, 17 Dec 2023 21:32:38 +0000 (22:32 +0100)
Looks like setuptools is no longer installed by default on recent
Python versions - 3.12 more precisely:
https://github.com/iustin/pyxattr/actions/runs/7236053321/job/19714175539,
which says:

```
Run python ./setup.py build_ext -i
Traceback (most recent call last):
  File "/Users/runner/work/pyxattr/pyxattr/./setup.py", line 5, in <module>
    from setuptools import setup, Extension
ModuleNotFoundError: No module named 'setuptools'
```

So let's explicitly install it for CI runs.

.github/workflows/ci.yml

index 619a302229f37714b336fab4ab759f0e57da41f9..de04b936dd2a11aa363e744ddce55084871c9aac 100644 (file)
@@ -62,6 +62,7 @@ jobs:
 
       - name: Install dependencies
         run: |
+          pip install setuptools
           pip install pytest
           pip install sphinx
           pip install recommonmark