Skip to content

Commit b409cbe

Browse files
author
Suffian Khan
authored
Fix incorrect library reference in Python manylinux package for CUDA (#9769)
1 parent 421e4c0 commit b409cbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def run(self):
157157
if len(args) > 3:
158158
subprocess.run(args, check=True, stdout=subprocess.PIPE)
159159

160-
dest = 'onnxruntime/capi/libonnxruntime_providers_' + 'rocm.so' if is_rocm else 'cuda.so'
160+
dest = 'onnxruntime/capi/libonnxruntime_providers_' + ('rocm.so' if is_rocm else 'cuda.so')
161161
if path.isfile(dest):
162162
result = subprocess.run(['patchelf', '--print-needed', dest],
163163
check=True, stdout=subprocess.PIPE, universal_newlines=True)

0 commit comments

Comments
 (0)