Skip to content

Commit e89c3de

Browse files
authored
[Python] Complete Python packaging with scikit-build-core (apache#18251)
Following apache#18239, this PR fixes a few issues we ran into during testing the packaging flow through scikit-build-core.
1 parent 5c36061 commit e89c3de

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

CMakeLists.txt

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -221,16 +221,10 @@ if (TVM_FFI_BUILD_PYTHON_MODULE)
221221
# Set RPATH for tvm_ffi_cython to find tvm_ffi_shared.so relatively
222222
if(APPLE)
223223
# macOS uses @loader_path
224-
set_target_properties(tvm_ffi_cython PROPERTIES
225-
INSTALL_RPATH "@loader_path/lib"
226-
BUILD_WITH_INSTALL_RPATH ON
227-
)
224+
set_target_properties(tvm_ffi_cython PROPERTIES INSTALL_RPATH "@loader_path/lib")
228225
elseif(LINUX)
229226
# Linux uses $ORIGIN
230-
set_target_properties(tvm_ffi_cython PROPERTIES
231-
INSTALL_RPATH "\$ORIGIN/lib"
232-
BUILD_WITH_INSTALL_RPATH ON
233-
)
227+
set_target_properties(tvm_ffi_cython PROPERTIES INSTALL_RPATH "\$ORIGIN/lib")
234228
endif()
235229
install(TARGETS tvm_ffi_cython DESTINATION .)
236230

0 commit comments

Comments
 (0)