Skip to content

Commit

Permalink
fix(//py): Fix python setup.py with new libtrtorch.so location
Browse files Browse the repository at this point in the history
Signed-off-by: Naren Dasan <[email protected]>
Signed-off-by: Naren Dasan <[email protected]>
  • Loading branch information
narendasan committed Aug 23, 2021
1 parent 87e7efc commit 68ba63c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 68ba63c

Please sign in to comment.