Repository navigation
Pin setuptools<82 to fix pkg_resources removal breakage - #174631
seemethere wants to merge 3 commits into
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/174631
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: ⏳ No Failures, 17 PendingAs of commit c98d592 with merge base 8f5c518 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
setuptools 82.0.0 (released Feb 8, 2026) removed pkg_resources, which breaks flake8-logging-format and other transitive dependencies that import it at module load time. Pin setuptools<82 across all build configs, Dockerfiles, CI scripts, and runtime dependencies until affected packages migrate away from pkg_resources. ghstack-source-id: 8f43967 Pull-Request: #174631
| @@ -1,5 +1,5 @@ | |||
| # Build System requirements | |||
| setuptools>=70.1.0 | |||
| setuptools>=70.1.0,<82 | |||
There was a problem hiding this comment.
IMO in practice it's less than 80
| "uv", | ||
| "pip", | ||
| "setuptools", | ||
| "setuptools<82", |
There was a problem hiding this comment.
I'm not sure what this thing is about, but I doubt it takes versions...
| - cmake | ||
| - pyyaml | ||
| - setuptools | ||
| - setuptools <82 |
There was a problem hiding this comment.
TIL :) I'm about to delete this one
|
@pytorchbot merge -f "Needed to fix flaky lint" |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
setuptools 82.0.0 (released Feb 8, 2026) removed pkg_resources, which breaks flake8-logging-format and other transitive dependencies that import it at module load time. Pin setuptools<82 across all build configs, Dockerfiles, CI scripts, and runtime dependencies until affected packages migrate away from pkg_resources. Pull Request resolved: pytorch#174631 Approved by: https://github.com/malfet
setuptools 82.0.0 (released Feb 8, 2026) removed pkg_resources, which breaks flake8-logging-format and other transitive dependencies that import it at module load time. Pin setuptools<82 in build configs, linter scripts, and runtime dependencies until affected packages migrate away from pkg_resources. ghstack-source-id: fadfdf7 Pull-Request: pytorch/pytorch#174631
setuptools 82.0.0 (released Feb 8, 2026) removed pkg_resources, which breaks flake8-logging-format and other transitive dependencies that import it at module load time. Pin setuptools<82 across all build configs, Dockerfiles, CI scripts, and runtime dependencies until affected packages migrate away from pkg_resources. Pull Request resolved: pytorch#174631 Approved by: https://github.com/malfet
|
This seems rather heavy handed to require setuptools <82 at run-time just because of flake8-logging-format. Perhaps this could be restricted to developer installs so all users aren't affected? |
Upper bound was originally introduced by #174631, but `pkg_resources` is not used by `torch.utils.cpp_extensions` Test Plan: Install latest setuptools and all `cpp_extensions` test still work Fixes #187188 Pull Request resolved: #187262 Approved by: https://github.com/malfet, https://github.com/atalman Co-authored-by: Nikita Shulga <[email protected]>
Remove setuptools upper bound (#187262) Upper bound was originally introduced by #174631, but `pkg_resources` is not used by `torch.utils.cpp_extensions` Test Plan: Install latest setuptools and all `cpp_extensions` test still work Fixes #187188 Pull Request resolved: #187262 Approved by: https://github.com/malfet, https://github.com/atalman (cherry picked from commit c776884) Co-authored-by: Yufeng He <[email protected]> Co-authored-by: Nikita Shulga <[email protected]>
Upper bound was originally introduced by pytorch#174631, but `pkg_resources` is not used by `torch.utils.cpp_extensions` Test Plan: Install latest setuptools and all `cpp_extensions` test still work Fixes pytorch#187188 Pull Request resolved: pytorch#187262 Approved by: https://github.com/malfet, https://github.com/atalman Co-authored-by: Nikita Shulga <[email protected]>
Upper bound was originally introduced by pytorch#174631, but `pkg_resources` is not used by `torch.utils.cpp_extensions` Test Plan: Install latest setuptools and all `cpp_extensions` test still work Fixes pytorch#187188 Pull Request resolved: pytorch#187262 Approved by: https://github.com/malfet, https://github.com/atalman Co-authored-by: Nikita Shulga <[email protected]>
Stack from ghstack (oldest at bottom):
setuptools 82.0.0 (released Feb 8, 2026) removed pkg_resources,
which breaks flake8-logging-format and other transitive dependencies
that import it at module load time. Pin setuptools<82 across all
build configs, Dockerfiles, CI scripts, and runtime dependencies
until affected packages migrate away from pkg_resources.