mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Change `build-system.build-backend`: `setuptools.build_meta:__legacy__` -> `setuptools.build_meta`. Also, move static package info from `setup.py` to `pyproject.toml`. Now the repo can be installed from source via `pip` command instead of `python setup.py develop`: ```bash python -m pip install --verbose --editable . python -m pip install --verbose --no-build-isolation --editable . ``` In addition, the SDist is also buildable: ```bash python -m build --sdist python -m install dist/torch-*.tar.gz # build from source using SDist ``` Note that we should build the SDist with a fresh git clone if we will upload the output to PyPI. Because all files under `third_party` will be included in the SDist. The SDist file will be huge if the git submodules are initialized. Pull Request resolved: https://github.com/pytorch/pytorch/pull/155998 Approved by: https://github.com/ezyang, https://github.com/cyyever, https://github.com/atalman
24 lines
397 B
Plaintext
24 lines
397 B
Plaintext
# Python dependencies required for development
|
|
astunparse
|
|
build[uv] # for building sdist and wheel
|
|
cmake>=3.27
|
|
expecttest>=0.3.0
|
|
filelock
|
|
fsspec
|
|
hypothesis
|
|
jinja2
|
|
lintrunner ; platform_machine != "s390x"
|
|
networkx
|
|
ninja
|
|
numpy
|
|
optree>=0.13.0
|
|
packaging
|
|
psutil
|
|
pyyaml
|
|
requests
|
|
# setuptools develop deprecated on 80.0
|
|
setuptools>=62.3.0,<80.0
|
|
sympy>=1.13.3
|
|
types-dataclasses
|
|
typing-extensions>=4.10.0
|