2021-02-23 04:05:28 +00:00
|
|
|
# Python dependencies required for development
|
2021-05-14 08:52:38 +00:00
|
|
|
astunparse
|
2024-09-05 13:33:03 +00:00
|
|
|
expecttest>=0.2.1
|
2022-08-23 22:05:26 +00:00
|
|
|
hypothesis
|
2018-08-24 17:31:55 +00:00
|
|
|
numpy
|
2021-02-23 04:05:28 +00:00
|
|
|
psutil
|
2016-08-16 17:58:15 +00:00
|
|
|
pyyaml
|
2019-09-05 00:41:03 +00:00
|
|
|
requests
|
Fix access to `_msvccompiler` from newer distutils (#141363)
Newer versions of distutils no longer import `_msvccompiler` upon init(on Windows platform, that was not the case on other platforms even before 74), but it's still accessible if one chooses to import it directly.
Test plan:
```
% python -c 'from setuptools import distutils; print(distutils.__version__, hasattr(distutils, "_msvccompiler")); from distutils import _msvccompiler; import setuptools; print(setuptools.__version__, _msvccompiler.__file__)'
3.10.9 False
65.5.0 /usr/local/fbcode/platform010/Python3.10.framework/Versions/3.10/lib/python3.10/site-packages/setuptools/_distutils/_msvccompiler.py
```
and
```
% python -c 'from setuptools import distutils; print(distutils.__version__, hasattr(distutils, "_msvccompiler")); from distutils import _msvccompiler; import setuptools; print(setuptools.__version__, _msvccompiler.__file__)'
3.13.0 False
75.6.0 /Users/malfet/py312-venv/lib/python3.13/site-packages/setuptools/_distutils/_msvccompiler.py
```
Gave up trying to appease the linker, so rewrote it as following function:
```python
def _get_vc_env(vc_arch: str) -> dict[str, str]:
try:
from setuptools import distutils # type: ignore[import]
return distutils._msvccompiler._get_vc_env(vc_arch) # type: ignore[no-any-return]
except AttributeError:
from setuptools._distutils import _msvccompiler #type: ignore[import]
return _msvccompiler._get_vc_env(vc_arch) # type: ignore[no-any-return]
```
This PR also undoes setuptools version restriction introduced by https://github.com/pytorch/pytorch/pull/136489 as premise for restriction is incorrect
Fixes https://github.com/pytorch/pytorch/issues/141319
Pull Request resolved: https://github.com/pytorch/pytorch/pull/141363
Approved by: https://github.com/huydhn, https://github.com/atalman
2024-11-25 01:50:47 +00:00
|
|
|
setuptools
|
2021-07-21 20:28:47 +00:00
|
|
|
types-dataclasses
|
2024-10-26 15:07:10 +00:00
|
|
|
typing-extensions>=4.10.0
|
2024-10-20 03:19:02 +00:00
|
|
|
sympy==1.13.1 ; python_version >= "3.9"
|
2022-10-13 23:18:06 +00:00
|
|
|
filelock
|
|
|
|
|
networkx
|
|
|
|
|
jinja2
|
2023-03-11 06:42:44 +00:00
|
|
|
fsspec
|
2024-10-15 20:37:24 +00:00
|
|
|
lintrunner ; platform_system != "Windows"
|
Add `ninja` as dev dependency (#127380)
`ninja` is required to build C++ extensions in tests.
```pytb
ERROR: test_autograd_cpp_node (__main__.TestCompiledAutograd)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/PanXuehai/Projects/pytorch/torch/testing/_internal/common_utils.py", line 2741, in wrapper
method(*args, **kwargs)
File "test/inductor/test_compiled_autograd.py", line 1061, in test_autograd_cpp_node
module = torch.utils.cpp_extension.load_inline(
File "/home/PanXuehai/Projects/pytorch/torch/utils/cpp_extension.py", line 1643, in load_inline
return _jit_compile(
File "/home/PanXuehai/Projects/pytorch/torch/utils/cpp_extension.py", line 1718, in _jit_compile
_write_ninja_file_and_build_library(
File "/home/PanXuehai/Projects/pytorch/torch/utils/cpp_extension.py", line 1800, in _write_ninja_file_and_build_library
verify_ninja_availability()
File "/home/PanXuehai/Projects/pytorch/torch/utils/cpp_extension.py", line 1849, in verify_ninja_availability
raise RuntimeError("Ninja is required to load C++ extensions")
RuntimeError: Ninja is required to load C++ extensions
To execute this test, run the following from the base repo dir:
python test/inductor/test_compiled_autograd.py -k TestCompiledAutograd.test_autograd_cpp_node
```
Pull Request resolved: https://github.com/pytorch/pytorch/pull/127380
Approved by: https://github.com/ezyang
2024-05-30 21:22:39 +00:00
|
|
|
ninja
|
2023-09-06 20:29:42 +00:00
|
|
|
packaging
|
2024-10-07 09:57:14 +00:00
|
|
|
optree>=0.13.0
|
2024-11-13 02:53:25 +00:00
|
|
|
cmake
|