mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 05:34:18 +08:00
Constraint setuptools to 72.1.0 or older in requirements.txt (#136489)
FIXES: https://github.com/pytorch/pytorch/issues/136541
Setuptools>=74.0.0 has deprecated support for some functions in distutils, and so the builds run into error such as ```AttributeError: module 'distutils' has no attribute '_msvccompiler'```. Also, the pytorch builds have setuptools pin to 72.1.0 according to these PRs: https://github.com/pytorch/builder/pull/1995 and 89d9a8cf6f
. So, until there is a fix to change the function usage in accordance with latest setuptools, the 72.1.0 version works fine.
Also observed in CI jobs: https://github.com/pytorch/pytorch/actions/runs/10979326524
Pull Request resolved: https://github.com/pytorch/pytorch/pull/136489
Approved by: https://github.com/malfet
Co-authored-by: Nikita Shulga <2453524+malfet@users.noreply.github.com>
This commit is contained in:
committed by
PyTorch MergeBot
parent
c9d12f6360
commit
8d65d9f11b
@ -6,7 +6,10 @@ numpy
|
|||||||
psutil
|
psutil
|
||||||
pyyaml
|
pyyaml
|
||||||
requests
|
requests
|
||||||
setuptools
|
# Setuptools>=74.0.0 stopped support for directly using private funcs(_msvccompiler)
|
||||||
|
# and consolidated all compiler logic in distutils used in Pytorch build, so older
|
||||||
|
# is required until pytorch build not refactored to work for latest setuptools.
|
||||||
|
setuptools<=72.1.0
|
||||||
types-dataclasses
|
types-dataclasses
|
||||||
typing-extensions>=4.8.0
|
typing-extensions>=4.8.0
|
||||||
sympy==1.12.1 ; python_version == "3.8"
|
sympy==1.12.1 ; python_version == "3.8"
|
||||||
@ -17,7 +20,5 @@ jinja2
|
|||||||
fsspec
|
fsspec
|
||||||
lintrunner
|
lintrunner
|
||||||
ninja
|
ninja
|
||||||
# setuptools was removed from default python install
|
|
||||||
setuptools ; python_version >= "3.12"
|
|
||||||
packaging
|
packaging
|
||||||
optree>=0.12.0 ; python_version <= "3.12"
|
optree>=0.12.0 ; python_version <= "3.12"
|
||||||
|
Reference in New Issue
Block a user