Replace setup.py install with pip install (#156711)

#156027 already replaced most use of `python setup.py install`.
This PR only adds a few more occurrences and adds `--no-build-isolation` in a few places.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/156711
Approved by: https://github.com/atalman
This commit is contained in:
Klaus Zimmermann
2025-09-29 10:37:14 +02:00
committed by PyTorch MergeBot
parent 92284fb2ff
commit fa54b08cd5
5 changed files with 6 additions and 5 deletions

View File

@ -148,7 +148,8 @@ class TestCppExtensionAOT(common.TestCase):
@unittest.skipIf(IS_WINDOWS, "Not available on Windows")
def test_no_python_abi_suffix_sets_the_correct_library_name(self):
# For this test, run_test.py will call `python -m pip install .` in the
# For this test, run_test.py will call
# `python -m pip install . -v --no-build-isolation` in the
# cpp_extensions/no_python_abi_suffix_test folder, where the
# `BuildExtension` class has a `no_python_abi_suffix` option set to
# `True`. This *should* mean that on Python 3, the produced shared