Skip to content

Commit

Permalink
ci: fix setuptools version (#319)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
yzh119 authored Jun 20, 2024
1 parent 5c05676 commit a0297e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/run-ci-build-wheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ echo "::endgroup::"

echo "::group::Install build system"
pip install ninja numpy
pip install --upgrade setuptools wheel build
pip install --upgrade setuptools==69.5.1 wheel build
echo "::endgroup::"


Expand Down

0 comments on commit a0297e7

Please sign in to comment.