Replace setup.py bdist_wheel with python -m build --wheel (#156712)

Previously we already replaced most use of `python setup.py develop/install`.

This PR also replaces the use of `setup.py bdist_wheel` with the modern `python -m build --wheel` alternative.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/156712
Approved by: https://github.com/atalman
ghstack dependencies: #156711
This commit is contained in:
Klaus Zimmermann
2025-09-29 10:37:15 +02:00
committed by PyTorch MergeBot
parent c332d58184
commit 50d418f69f
22 changed files with 61 additions and 54 deletions

View File

@ -1,5 +1,5 @@
# Build System requirements
setuptools>=70.1.0,<80.0 # setuptools develop deprecated on 80.0
setuptools>=70.1.0
cmake>=3.27
ninja
numpy