Revert "Use recursive blob for package data (#119257)"

This reverts commit f20e3ae0c36146c962a5665018e9ad662a7cf211.

Reverted https://github.com/pytorch/pytorch/pull/119257 on behalf of https://github.com/malfet due to This likely caused https://github.com/pytorch/pytorch/issues/124941, not sure why warning about recursive grep was ignored ([comment](https://github.com/pytorch/pytorch/pull/119257#issuecomment-2078312309))
This commit is contained in:
PyTorch MergeBot
2024-04-25 23:08:20 +00:00
parent 98835fff9f
commit 33fae4fcf4

View File

@ -1393,9 +1393,15 @@ def main():
]
)
torchgen_package_data = [
"packaged/**/*.cpp",
"packaged/**/*.h",
"packaged/**/*.yaml",
# Recursive glob doesn't work in setup.py,
# https://github.com/pypa/setuptools/issues/1806
# To make this robust we should replace it with some code that
# returns a list of everything under packaged/
"packaged/ATen/*",
"packaged/ATen/native/*",
"packaged/ATen/templates/*",
"packaged/autograd/*",
"packaged/autograd/templates/*",
]
setup(
name=package_name,