Skip to content

Commit a0297e7

Browse files
authored
ci: fix setuptools version (#319)
We met the following error when running the building scripts: ``` File "/tmp/home/.local/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 28, in <module> from pkg_resources import packaging # type: ignore[attr-defined] ImportError: cannot import name 'packaging' from 'pkg_resources' (/tmp/home/.local/lib/python3.10/site-packages/pkg_resources/__init__.py) ``` Let's follow [this](https://stackoverflow.com/questions/78604018/importerror-cannot-import-name-packaging-from-pkg-resources-when-trying-to) and see whether it works or not.
1 parent 5c05676 commit a0297e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/run-ci-build-wheel.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ echo "::endgroup::"
3636

3737
echo "::group::Install build system"
3838
pip install ninja numpy
39-
pip install --upgrade setuptools wheel build
39+
pip install --upgrade setuptools==69.5.1 wheel build
4040
echo "::endgroup::"
4141

4242

0 commit comments

Comments
 (0)