From 68ba63ccda728a82762ebc06aa20cab8c7355379 Mon Sep 17 00:00:00 2001 From: Naren Dasan Date: Mon, 23 Aug 2021 12:59:13 -0700 Subject: [PATCH] fix(//py): Fix python setup.py with new libtrtorch.so location Signed-off-by: Naren Dasan Signed-off-by: Naren Dasan --- py/setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/py/setup.py b/py/setup.py index fa75587423..5a354b742d 100644 --- a/py/setup.py +++ b/py/setup.py @@ -72,7 +72,7 @@ def is_exe(fpath): def build_libtrtorch_pre_cxx11_abi(develop=True, use_dist_dir=True, cxx11_abi=False): cmd = [BAZEL_EXE, "build"] - cmd.append("//cpp/api/lib:libtrtorch.so") + cmd.append("//cpp/lib:libtrtorch.so") if develop: cmd.append("--compilation_mode=dbg") else: @@ -115,7 +115,7 @@ def copy_libtrtorch(multilinux=False): if multilinux: copyfile(dir_path + "/build/libtrtorch_build/libtrtorch.so", dir_path + '/trtorch/lib/libtrtorch.so') else: - copyfile(dir_path + "/../bazel-bin/cpp/api/lib/libtrtorch.so", dir_path + '/trtorch/lib/libtrtorch.so') + copyfile(dir_path + "/../bazel-bin/cpp/lib/libtrtorch.so", dir_path + '/trtorch/lib/libtrtorch.so') class DevelopCommand(develop):