pytorch/test/cpp
Xuehai Pan 4dce5b71a0 [build] modernize build-frontend: python setup.py develop/install -> [uv ]pip install --no-build-isolation [-e ]. (#156027)
Modernize the development installation:

```bash
# python setup.py develop
python -m pip install --no-build-isolation -e .

# python setup.py install
python -m pip install --no-build-isolation .
```

Now, the `python setup.py develop` is a wrapper around `python -m pip install -e .` since `setuptools>=80.0`:

- pypa/setuptools#4955

`python setup.py install` is deprecated and will emit a warning during run. The warning will become an error on October 31, 2025.

- 9c4d383631/setuptools/command/install.py (L58-L67)

> ```python
> SetuptoolsDeprecationWarning.emit(
>     "setup.py install is deprecated.",
>     """
>     Please avoid running ``setup.py`` directly.
>     Instead, use pypa/build, pypa/installer or other
>     standards-based tools.
>     """,
>     see_url="https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html",
>     due_date=(2025, 10, 31),
> )
> ```

- pypa/setuptools#3849

Additional Resource:

- [Why you shouldn't invoke setup.py directly](https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/156027
Approved by: https://github.com/ezyang
2025-07-09 11:24:27 +00:00
..
aoti_abi_check Reapply D77381084 / #156964: Rename torch::standalone to headeronly (#157251) 2025-06-30 23:25:30 +00:00
aoti_inference [AOTI] Fix AOT inductor CMake build dependency order (#157557) 2025-07-04 14:33:36 +00:00
api [2/N] Fix cppcoreguidelines-init-variables suppression (#146237) 2025-06-19 23:26:42 +00:00
c10d [c10d][PGNCCL] Make watchdog thread a class (#155831) 2025-06-13 18:05:22 +00:00
common [AOTI] Add ABI-compatiblity tests (#123848) 2024-04-19 00:51:24 +00:00
dist_autograd Fix some CMake issues (#153686) 2025-05-19 00:31:34 +00:00
jit [build] modernize build-frontend: python setup.py develop/install -> [uv ]pip install --no-build-isolation [-e ]. (#156027) 2025-07-09 11:24:27 +00:00
lazy Fix some CMake issues (#153686) 2025-05-19 00:31:34 +00:00
lite_interpreter_runtime Fix some CMake issues (#153686) 2025-05-19 00:31:34 +00:00
monitor
nativert [nativert] hook up memory planning to execution frame (#157053) 2025-06-30 00:06:37 +00:00
profiler [Lint] Update clang-format to 19.1.4 (#153889) 2025-05-20 14:12:46 +00:00
rpc Fix some CMake issues (#153686) 2025-05-19 00:31:34 +00:00
tensorexpr [2/N] Fix cppcoreguidelines-init-variables suppression (#146237) 2025-06-19 23:26:42 +00:00
__init__.py