MCPcopy Create free account
hub / github.com/dmlc/treelite / copy_cpp_src_tree

Function copy_cpp_src_tree

python/packager/sdist.py:11–24  ·  view source on GitHub ↗

Copy C++ source tree into build directory

(
    cpp_src_dir: pathlib.Path, target_dir: pathlib.Path, logger: logging.Logger
)

Source from the content-addressed store, hash-verified

9
10
11def copy_cpp_src_tree(
12 cpp_src_dir: pathlib.Path, target_dir: pathlib.Path, logger: logging.Logger
13) -> None:
14 """Copy C++ source tree into build directory"""
15
16 for subdir in [
17 "src",
18 "include",
19 "cmake",
20 ]:
21 copytree_with_logging(cpp_src_dir / subdir, target_dir / subdir, logger=logger)
22
23 for filename in ["CMakeLists.txt", "LICENSE"]:
24 copy_with_logging(cpp_src_dir.joinpath(filename), target_dir, logger=logger)

Callers 1

build_sdistFunction · 0.85

Calls 2

copytree_with_loggingFunction · 0.85
copy_with_loggingFunction · 0.85

Tested by

no test coverage detected