From 859d84c5b1db7be8c247bd96d9f68802603e31b2 Mon Sep 17 00:00:00 2001 From: yancong <32220263+ice-tong@users.noreply.github.com> Date: Sun, 8 Jan 2023 14:31:21 +0800 Subject: [PATCH] [Fix] Fix CI failed due to the version of setuptools (#2530) * debug build_cu102 ci jobs * debug build_cu102 ci jobs * add tmate ssh * add tmate ssh * install specified version for setuptools * revert comments of ci jobs * revert comments of ci jobs * specify setuptools version for build_cu116 --- .github/workflows/build.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 04e630723..456a2fa19 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -277,6 +277,10 @@ jobs: # pstuil is an optional package to detect the number of CPU for compiling mmcv - name: Install psutil run: python -m pip install psutil + # the directory for header files for the Python C-API could be wrong since setuptools>=65.2.0 + - name: Install specified version for setuptools when python==3.10 + run: python -m pip install 'setuptools<=65.1.0' + if: ${{matrix.python-version == '3.10'}} - name: Build and install run: rm -rf .eggs && python -m pip install -e . - name: Validate the installation @@ -332,6 +336,10 @@ jobs: # pstuil is an optional package to detect the number of CPU for compiling mmcv - name: Install psutil run: python -m pip install psutil + # the directory for header files for the Python C-API could be wrong since setuptools>=65.2.0 + - name: Install specified version for setuptools when python==3.10 + run: python -m pip install 'setuptools<=65.1.0' + if: ${{matrix.python-version == '3.10'}} - name: Build and install run: rm -rf .eggs && python -m pip install -e . - name: Validate the installation