From a0297e731e5723a8c6d32f6c913722d0037e4b79 Mon Sep 17 00:00:00 2001 From: Zihao Ye Date: Thu, 20 Jun 2024 01:54:08 -0700 Subject: [PATCH] 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 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. --- scripts/run-ci-build-wheel.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/run-ci-build-wheel.sh b/scripts/run-ci-build-wheel.sh index c20041c1d..c50118a1c 100644 --- a/scripts/run-ci-build-wheel.sh +++ b/scripts/run-ci-build-wheel.sh @@ -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::"