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: ...@@ -29,7 +29,7 @@ steps:
echo "##vso[task.prependpath]$HOME/.local/bin" echo "##vso[task.prependpath]$HOME/.local/bin"
displayName: Export path displayName: Export path
- script: | - script: |
python3 -m pip install --upgrade pip python3 -m pip install --upgrade pip setuptools==65.7
python3 -m pip install .[test,cpuworker] python3 -m pip install .[test,cpuworker]
make postinstall make postinstall
displayName: Install dependencies displayName: Install dependencies
......
...@@ -18,7 +18,7 @@ steps: ...@@ -18,7 +18,7 @@ steps:
echo "##vso[task.prependpath]$HOME/.local/bin" echo "##vso[task.prependpath]$HOME/.local/bin"
displayName: Export path displayName: Export path
- script: | - script: |
python3 -m pip install --upgrade pip python3 -m pip install --upgrade pip setuptools==65.7
python3 -m pip install .[test,nvworker] python3 -m pip install .[test,nvworker]
make postinstall make postinstall
displayName: Install dependencies displayName: Install dependencies
......
...@@ -132,7 +132,7 @@ ADD third_party third_party ...@@ -132,7 +132,7 @@ ADD third_party third_party
RUN make -C third_party rocm RUN make -C third_party rocm
ADD . . 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] && \ python3 -m pip install --no-cache-dir .[amdworker] && \
make cppbuild && \ make cppbuild && \
make postinstall && \ make postinstall && \
......
...@@ -18,9 +18,9 @@ ...@@ -18,9 +18,9 @@
import superbench import superbench
try: try:
pkg_resources.require(['pip>=18', 'setuptools>=45']) pkg_resources.require(['pip>=18', 'setuptools>=45, <66'])
except (pkg_resources.VersionConflict, pkg_resources.DistributionNotFound): 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 raise
here = pathlib.Path(__file__).parent.resolve() 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