Skip to content

Commit e331ef0

Browse files
committed
Fixing wheel build for nvshmem artifacts
Signed-off-by: Boris Fomitchev <[email protected]>
1 parent 155f262 commit e331ef0

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

scripts/build_wheel.py

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -669,18 +669,21 @@ def get_binding_lib(subdirectory, name):
669669
"deep_ep",
670670
deep_ep_dir,
671671
dirs_exist_ok=True)
672+
672673
(lib_dir / "nvshmem").mkdir(exist_ok=True)
673-
install_file(
674-
build_dir / "tensorrt_llm/deep_ep/nvshmem-build/License.txt",
675-
lib_dir / "nvshmem")
676-
install_file(
677-
build_dir /
678-
"tensorrt_llm/deep_ep/nvshmem-build/src/lib/nvshmem_bootstrap_uid.so.3",
679-
lib_dir / "nvshmem")
680-
install_file(
681-
build_dir /
682-
"tensorrt_llm/deep_ep/nvshmem-build/src/lib/nvshmem_transport_ibgda.so.103",
683-
lib_dir / "nvshmem")
674+
nvshmem_license = build_dir / "tensorrt_llm/deep_ep/nvshmem-build/License.txt"
675+
if nvshmem_license.exists():
676+
install_file(
677+
build_dir / "tensorrt_llm/deep_ep/nvshmem-build/License.txt",
678+
lib_dir / "nvshmem")
679+
install_file(
680+
build_dir /
681+
"tensorrt_llm/deep_ep/nvshmem-build/src/lib/nvshmem_bootstrap_uid.so.3",
682+
lib_dir / "nvshmem")
683+
install_file(
684+
build_dir /
685+
"tensorrt_llm/deep_ep/nvshmem-build/src/lib/nvshmem_transport_ibgda.so.103",
686+
lib_dir / "nvshmem")
684687
if not skip_stubs:
685688
with working_directory(project_dir):
686689
if binding_type == "nanobind":

0 commit comments

Comments
 (0)