Skip to content

Commit

Permalink
Fix Python package source install. (#8036)
Browse files Browse the repository at this point in the history
* Copy gputreeshap.
  • Loading branch information
trivialfis authored Jun 29, 2022
1 parent 6eb2335 commit dcaf580
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python-package/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,15 @@ def clean_copy_file(src: str, dst: str) -> None:
src = os.path.join(src_dir, 'src')
inc = os.path.join(src_dir, 'include')
dmlc_core = os.path.join(src_dir, 'dmlc-core')
gputreeshap = os.path.join(src_dir, "gputreeshap")
rabit = os.path.join(src_dir, 'rabit')
cmake = os.path.join(src_dir, 'cmake')
plugin = os.path.join(src_dir, 'plugin')

clean_copy_tree(src, os.path.join(target_dir, 'src'))
clean_copy_tree(inc, os.path.join(target_dir, 'include'))
clean_copy_tree(dmlc_core, os.path.join(target_dir, 'dmlc-core'))
clean_copy_tree(gputreeshap, os.path.join(target_dir, "gputreeshap"))
clean_copy_tree(rabit, os.path.join(target_dir, 'rabit'))
clean_copy_tree(cmake, os.path.join(target_dir, 'cmake'))
clean_copy_tree(plugin, os.path.join(target_dir, 'plugin'))
Expand Down

0 comments on commit dcaf580

Please sign in to comment.