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.
This commit is contained in:
Родитель
2cc4cd03e2
Коммит
35f5390512
|
@ -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 && \
|
||||
|
|
4
setup.py
4
setup.py
|
@ -18,9 +18,9 @@ from setuptools import setup, find_packages, Command
|
|||
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()
|
||||
|
|
Загрузка…
Ссылка в новой задаче