Skip to content

Commit

Permalink
Allow torch/csrc/deploy/interpreter/Optional.hpp to be allowed into t…
Browse files Browse the repository at this point in the history
…he wheel distribution (pytorch#74643)

Summary:
Pull Request resolved: pytorch#74643

Previously `torch/csrc/deploy/interpreter/Optional.hpp` wasn't getting included in the wheel distribution created by `USE_DEPLOY=1 python setup.py bdist_wheel`, this pr fixes that

Test Plan: Imported from OSS

Reviewed By: d4l3k

Differential Revision: D35094459

Pulled By: PaliC

fbshipit-source-id: 50aea946cc5bb72720b993075bd57ccf8377db30
(cherry picked from commit 6ad5d96)
  • Loading branch information
PaliC authored and pytorchmergebot committed Mar 24, 2022
1 parent d7a857b commit 238d01e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion caffe2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1143,7 +1143,7 @@ endif()

install(DIRECTORY "${TORCH_SRC_DIR}/csrc"
DESTINATION ${TORCH_INSTALL_INCLUDE_DIR}/torch
FILES_MATCHING PATTERN "*.h")
FILES_MATCHING PATTERN "*.h" PATTERN "*.hpp")
install(DIRECTORY "${TORCH_SRC_DIR}/csrc/distributed/c10d"
DESTINATION ${TORCH_INSTALL_INCLUDE_DIR}
FILES_MATCHING PATTERN "*.h" PATTERN "*.hpp")
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -1019,7 +1019,8 @@ def print_box(msg):
'include/torch/csrc/autograd/utils/*.h',
'include/torch/csrc/cuda/*.h',
'include/torch/csrc/deploy/*.h',
'include/torch/csrc/deploy/interpreter/interpreter_impl.h',
'include/torch/csrc/deploy/interpreter/*.h',
'include/torch/csrc/deploy/interpreter/*.hpp',
'include/torch/csrc/distributed/c10d/exception.h',
'include/torch/csrc/jit/*.h',
'include/torch/csrc/jit/backends/*.h',
Expand Down

0 comments on commit 238d01e

Please sign in to comment.