[OpenReg] Disable automatic inclusion of data files (#159845)

# Background

After I built torch_openreg, I noticed that the wheel package contained the stub.c file under the csrc directory, which was not used in the runtime.

# Motivation

This PR aims to remove the stub.c file and any unused file when running torch_openreg.

**Changes:**

- Setting **include_package_data** keyword to false in the setup function

Pull Request resolved: https://github.com/pytorch/pytorch/pull/159845
Approved by: https://github.com/albanD
This commit is contained in:
can-gaa-hou
2025-08-06 10:35:10 +00:00
committed by PyTorch MergeBot
parent 98316e5896
commit c03a734ba1

View File

@ -85,6 +85,7 @@ def main():
cmdclass={
"clean": BuildClean, # type: ignore[misc]
},
include_package_data=False,
)