Skip to content

Commit 5250fe1

Browse files
ice-tongroot
authored andcommitted
[Fix] Fix CI failed due to the version of setuptools (open-mmlab#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
1 parent 141b6c4 commit 5250fe1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,10 @@ jobs:
277277
# pstuil is an optional package to detect the number of CPU for compiling mmcv
278278
- name: Install psutil
279279
run: python -m pip install psutil
280+
# the directory for header files for the Python C-API could be wrong since setuptools>=65.2.0
281+
- name: Install specified version for setuptools when python==3.10
282+
run: python -m pip install 'setuptools<=65.1.0'
283+
if: ${{matrix.python-version == '3.10'}}
280284
- name: Build and install
281285
run: rm -rf .eggs && python -m pip install -e .
282286
- name: Validate the installation
@@ -332,6 +336,10 @@ jobs:
332336
# pstuil is an optional package to detect the number of CPU for compiling mmcv
333337
- name: Install psutil
334338
run: python -m pip install psutil
339+
# the directory for header files for the Python C-API could be wrong since setuptools>=65.2.0
340+
- name: Install specified version for setuptools when python==3.10
341+
run: python -m pip install 'setuptools<=65.1.0'
342+
if: ${{matrix.python-version == '3.10'}}
335343
- name: Build and install
336344
run: rm -rf .eggs && python -m pip install -e .
337345
- name: Validate the installation

0 commit comments

Comments
 (0)