Move version.h to torch/headeronly (#164381)

Differential Revision: [D83685392](https://our.internmc.facebook.com/intern/diff/D83685392)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/164381
Approved by: https://github.com/janeyx99
This commit is contained in:
Mikayla Gawarecki
2025-10-06 18:29:20 -07:00
committed by PyTorch MergeBot
parent b13cd141b3
commit f37a6523ef
12 changed files with 62 additions and 25 deletions

View File

@ -142,18 +142,6 @@ def define_targets(rules):
visibility = ["//visibility:public"],
)
rules.genrule(
name = "version_h",
srcs = [
":torch/csrc/api/include/torch/version.h.in",
":version.txt",
],
outs = ["torch/csrc/api/include/torch/version.h"],
cmd = "$(execpath //tools/setup_helpers:gen_version_header) " +
"--template-path $(location :torch/csrc/api/include/torch/version.h.in) " +
"--version-path $(location :version.txt) --output-path $@ ",
tools = ["//tools/setup_helpers:gen_version_header"],
)
#
# ATen generated code