pytorch/.ci
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
..
aarch64_linux Install nvperf_host together with cupti (#156668) 2025-06-28 04:26:36 +00:00
caffe2 Fix more URLs (#153277) 2025-05-14 16:23:50 +00:00
docker [BE]: Update NCCL to 2.27.5 (#157108) 2025-07-08 15:40:54 +00:00
libtorch Move manywheel binary scripts to pytorch (#138103) 2024-10-18 17:11:28 +00:00
magma [BE] Remove CUDA 11 artifacts. Fix Check Binary workflow (#155555) 2025-06-10 21:32:08 +00:00
magma-rocm [ROCm] Use almalinux docker files for building Magma (#152488) 2025-04-30 17:53:30 +00:00
manywheel [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
onnx Fix more URLs (#153277) 2025-05-14 16:23:50 +00:00
pytorch [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
wheel [build] Change --cmake{,-only} arguments to envvars to support modern Python build frontend (#156045) 2025-06-17 11:40:24 +00:00