Unverified Commit 35f53905 authored by Yifan Xiong's avatar Yifan Xiong Committed by GitHub
Browse files

Pin setuptools version to v65.7.0 (#483)

Pin setuptools version to
[v65.7.0](https://setuptools.pypa.io/en/latest/history.html#v65-7-0) to
avoid breaking changes since v66.0.0.
parent 2cc4cd03
......@@ -29,7 +29,7 @@ steps:
echo "##vso[task.prependpath]$HOME/.local/bin"
displayName: Export path
- script: |
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade pip setuptools==65.7
python3 -m pip install .[test,cpuworker]
make postinstall
displayName: Install dependencies
......
......@@ -18,7 +18,7 @@ steps:
echo "##vso[task.prependpath]$HOME/.local/bin"
displayName: Export path
- script: |
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade pip setuptools==65.7
python3 -m pip install .[test,nvworker]
make postinstall
displayName: Install dependencies
......
......@@ -132,7 +132,7 @@ ADD third_party third_party
RUN make -C third_party rocm
ADD . .
RUN python3 -m pip install --upgrade setuptools && \
RUN python3 -m pip install --upgrade setuptools==65.7 && \
python3 -m pip install --no-cache-dir .[amdworker] && \
make cppbuild && \
make postinstall && \
......
......@@ -18,9 +18,9 @@
import superbench
try:
pkg_resources.require(['pip>=18', 'setuptools>=45'])
pkg_resources.require(['pip>=18', 'setuptools>=45, <66'])
except (pkg_resources.VersionConflict, pkg_resources.DistributionNotFound):
print('Try upgrade pip/setuptools to latest version, for example, python3 -m pip install --upgrade pip setuptools')
print('Try update pip/setuptools versions, for example, python3 -m pip install --upgrade pip setuptools==65.7')
raise
here = pathlib.Path(__file__).parent.resolve()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment