Skip to content

Commit

Permalink
[cherry-pick] add dlpack include in third_party (#20739)
Browse files Browse the repository at this point in the history
* add dlpack include in third_party. test=develop
  • Loading branch information
heavengate committed Oct 20, 2019
1 parent 06452f1 commit 28f871d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/setup.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ headers = (
list(find_files('*', '${BOOST_INCLUDE_DIR}/boost')) + # boost
list(find_files('*', '${XXHASH_INSTALL_DIR}/include')) + # xxhash
list(find_files('*', '${PROTOBUF_INCLUDE_DIR}')) + # protobuf
list(find_files('*', '${DLPACK_INCLUDE_DIR}')) + # dlpack
list(find_files('*.h', '${THREADPOOL_INCLUDE_DIR}'))) # threadpool


Expand Down Expand Up @@ -329,6 +330,7 @@ class InstallHeaders(Command):
install_dir = re.sub('${THIRD_PARTY_PATH}', 'third_party', header)
install_dir = re.sub('src/extern_eigen3/', '', install_dir)
install_dir = re.sub('src/extern_boost/', '', install_dir)
install_dir = re.sub('src/extern_dlpack/', '', install_dir)
install_dir = os.path.join(self.install_dir, os.path.dirname(install_dir))
if not os.path.exists(install_dir):
self.mkpath(install_dir)
Expand Down

0 comments on commit 28f871d

Please sign in to comment.