Skip to content

Commit

Permalink
DevOps: Pin version of setuptools as it breaks dependencies (aiidat…
Browse files Browse the repository at this point in the history
…eam#5782)

The last version `setuptools==65.6.0` that was released today, breaks a
number of packages, e.g., `numpy`, because it removed the `Log` resource
from the `distutils.log` module. We temporarily pin the version to
`setuptools==65.5.0` in the CI pipeline until a more permanent fix
upstream is released.
  • Loading branch information
sphuber committed Nov 19, 2022
1 parent da5103e commit 865c30e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,10 @@ jobs:
run: sudo apt update && sudo apt install postgresql graphviz

- name: Upgrade pip and setuptools
# Install specific version of setuptools, because 65.6.0 breaks a number of packages, such as numpy
run: |
pip install --upgrade pip setuptools
pip install --upgrade pip
pip install setuptools==65.5.0
pip --version
- name: Build pymatgen with compatible numpy
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/test-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,10 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Upgrade pip and setuptools
# Install specific version of setuptools, because 65.6.0 breaks a number of packages, such as numpy
run: |
pip install --upgrade pip setuptools
pip install --upgrade pip
pip install setuptools==65.5.0
pip --version
- name: Create environment from requirements file.
Expand Down Expand Up @@ -229,8 +231,10 @@ jobs:

- name: Upgrade pip and setuptools
# It is crucial to update `setuptools` or the installation of `pymatgen` can break
# Install specific version of setuptools, because 65.6.0 breaks a number of packages, such as numpy
run: |
pip install --upgrade pip setuptools
pip install --upgrade pip
pip install setuptools==65.5.0
pip --version
- name: Install aiida-core
Expand Down

0 comments on commit 865c30e

Please sign in to comment.