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

@ -4,7 +4,7 @@
requires = [
# 70.1.0: min version for integrated bdist_wheel command from wheel package
# 77.0.0: min version for SPDX expression support for project.license
"setuptools>=70.1.0,<80.0",
"setuptools>=70.1.0",
"cmake>=3.27",
"ninja",
"numpy",