Files
pytorch/tools/setup_helpers/build.bzl
PyTorch MergeBot 59e261bbd8 Revert "[CI] update flake8 and mypy lint dependencies (#158720)"
This reverts commit f5130bf339f12ccf5c6296130c47685bdc4858e4.

Reverted https://github.com/pytorch/pytorch/pull/158720 on behalf of https://github.com/yangw-dev due to this pr failed internally when build torchgen due to rror: fail: Unknown PyPI project: pyyaml, it seems like this is caused by change PyYAML into  pyyaml, please fix it ([comment](https://github.com/pytorch/pytorch/pull/158720#issuecomment-3129995414))
2025-07-28 22:02:10 +00:00

18 lines
431 B
Python

def define_targets(rules):
rules.py_binary(
name = "generate_code",
srcs = ["generate_code.py"],
visibility = ["//:__pkg__"],
deps = [
rules.requirement("PyYAML"),
"//tools/autograd",
"//torchgen",
],
)
rules.py_binary(
name = "gen_version_header",
srcs = ["gen_version_header.py"],
visibility = ["//:__pkg__"],
)