mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[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:
committed by
PyTorch MergeBot
parent
98316e5896
commit
c03a734ba1
@ -85,6 +85,7 @@ def main():
|
||||
cmdclass={
|
||||
"clean": BuildClean, # type: ignore[misc]
|
||||
},
|
||||
include_package_data=False,
|
||||
)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user