Skip to content

Commit

Permalink
Pin setuptools version to v65.7.0
Browse files Browse the repository at this point in the history
Pin setuptools version to
[v65.7.0](https://setuptools.pypa.io/en/latest/history.html#v65-7-0) to
avoid breaking changes pypa/setuptools#2497 since v66.0.0, reference
pypa/setuptools#3772.
  • Loading branch information
abuccts committed Mar 1, 2023
1 parent eba298f commit 4a162cf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .azure-pipelines/cpu-unit-test.yml
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .azure-pipelines/cuda-unit-test.yml
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Expand Up @@ -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()
Expand Down

0 comments on commit 4a162cf

Please sign in to comment.