From f9fee9bf10de935ceb27de695b7c224b86c19487 Mon Sep 17 00:00:00 2001 From: Sebastiaan Huber Date: Sat, 19 Nov 2022 13:30:14 +0100 Subject: [PATCH] DevOps: Pin version of `setuptools` as it breaks dependencies 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. --- .github/workflows/ci-code.yml | 4 +++- .github/workflows/test-install.yml | 8 ++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-code.yml b/.github/workflows/ci-code.yml index 73ec4d1977..fb9ce27da1 100644 --- a/.github/workflows/ci-code.yml +++ b/.github/workflows/ci-code.yml @@ -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 diff --git a/.github/workflows/test-install.yml b/.github/workflows/test-install.yml index b806ce7c98..4126fde20c 100644 --- a/.github/workflows/test-install.yml +++ b/.github/workflows/test-install.yml @@ -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. @@ -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